mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
double keystroke shortcut doesnt work when typeahead enabled
This commit is contained in:
+8
-3
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user