Example #1
0
 public final void registerAction(
     @NonNls String aActionName,
     int aKeyCode,
     @JdkConstants.InputEventMask int aModifier,
     Action aAction) {
   myInputMap.put(KeyStroke.getKeyStroke(aKeyCode, aModifier), aActionName);
   myActionMap.put(aActionName, aAction);
 }
Example #2
0
 public final void registerAction(
     @NonNls String aActionName, KeyStroke keyStroke, Action aAction) {
   myInputMap.put(keyStroke, aActionName);
   myActionMap.put(aActionName, aAction);
 }