MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / keyReleased

Method keyReleased

CodenameOne/src/com/codename1/ui/Dialog.java:1348–1365  ·  view source on GitHub ↗
(int keyCode)

Source from the content-addressed store, hash-verified

1346
1347 /// {@inheritDoc}
1348 @Override
1349 public void keyReleased(int keyCode) {
1350 if (commandsAsButtons) {
1351 if (MenuBar.isLSK(keyCode)) {
1352 if (buttonCommands != null && buttonCommands.length > 0) {
1353 dispatchCommand(buttonCommands[0], new ActionEvent(buttonCommands[0], ActionEvent.Type.KeyRelease));
1354 return;
1355 }
1356 }
1357 if (MenuBar.isRSK(keyCode)) {
1358 if (buttonCommands != null && buttonCommands.length > 1) {
1359 dispatchCommand(buttonCommands[1], new ActionEvent(buttonCommands[1], ActionEvent.Type.KeyRelease));
1360 return;
1361 }
1362 }
1363 }
1364 super.keyReleased(keyCode);
1365 }
1366
1367 /// {@inheritDoc}
1368 @Override

Callers

nothing calls this directly

Calls 4

isLSKMethod · 0.95
isRSKMethod · 0.95
keyReleasedMethod · 0.65
dispatchCommandMethod · 0.45

Tested by

no test coverage detected