if (ignoreKey(keyCode)) {
return;
}
LOG.debug("key " + KeyEvent.getKeyModifiersText(modifiers) + " '" + KeyEvent.getKeyText(keyCode) + "' pressed");
final KeyboardAction keyboardAction = new KeyboardActionImpl(keyCode, modifiers);
if (viewer.isOverlayAvailable()) {
viewer.getOverlayView().keyPressed(keyboardAction);
if (!keyboardAction.isConsumed() && keyCode == KeyEvent.VK_F1) {
viewer.openHelp(viewer.getOverlayView());
// help(viewer.getOverlayView());
}
return;
}
final View keyboardFocus = getFocus();
if (keyboardFocus == null) {
// throw new ObjectAdapterRuntimeException("No focus set");
LOG.debug("No focus set");
return;
}
keyboardFocus.keyPressed(keyboardAction);
if (keyboardAction.isConsumed()) {
return;
}
if ((modifiers & InputEvent.SHIFT_MASK) == InputEvent.SHIFT_MASK && keyCode == KeyEvent.VK_F10) {
final Location location = keyboardFocus.getAbsoluteLocation();