}
if(containsModifierKeyCode(ks))
return false;
final FreeplaneMenuBar freeplaneMenuBar = Controller.getCurrentController().getViewController()
.getFreeplaneMenuBar();
return freeplaneMenuBar.processKeyBinding(ks, e, JComponent.WHEN_IN_FOCUSED_WINDOW, pressed);
}
private static final List<Integer> modifierKeyCodes = Arrays.asList(VK_CONTROL, VK_ALT, VK_SHIFT, VK_META, VK_WINDOWS);
private boolean containsModifierKeyCode(final KeyStroke ks) {
return modifierKeyCodes.contains(ks.getKeyCode());