boolean process() { myProcessor.myDblClickTimer.stop(); if (isPureModifierEvent(KeyEvent.KEY_RELEASED)) return false; if (!isPureModifierEvent(KeyEvent.KEY_PRESSED)) { myProcessor.setState(myProcessor.myWaitForStart); return false; } myContext.actionKey = myContext.keyToProcess; myProcessor.setState(myProcessor.myWaitForAction); myContext.actionShortcut = KeyStroke.getKeyStrokeForEvent(myContext.actionKey); myContext.modifierType = KeyboardGestureAction.ModifierType.dblClick; myProcessor.executeAction(); return true; }