(int keyCode)
| 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 |
nothing calls this directly
no test coverage detected