double keystroke shortcut doesnt work when typeahead enabled

This commit is contained in:
kirillk
2011-10-05 09:58:16 +04:00
parent 2d3fba752a
commit 39a480e1fc
@@ -523,10 +523,15 @@ public final class IdeKeyEventDispatcher implements Disposable {
public void performAction(final InputEvent e, final AnAction action, final AnActionEvent actionEvent) {
e.consume();
if (Registry.is("actionSystem.fixLostTyping")) {
IdeEventQueue.getInstance().getKeyEventDispatcher().resetState();
}
action.actionPerformed(actionEvent);
if (Registry.is("actionSystem.fixLostTyping")) {
IdeEventQueue.getInstance().doWhenReady(new Runnable() {
@Override
public void run() {
IdeEventQueue.getInstance().getKeyEventDispatcher().resetState();
}
});
}
}
};