void () { updateShortcut(); ApplicationManager.getApplication().getMessageBus().connect().subscribe(KeymapManagerListener.TOPIC, new KeymapManagerListener() { @Override public void activeKeymapChanged(@Nullable Keymap keymap) { if (keymap == null) { registerDblCtrlClick(); } else { updateShortcut(); } } @Override public void shortcutChanged(@NotNull Keymap keymap, @NotNull String actionId) { if (RUN_ANYTHING_ACTION_ID.equals(actionId)) { updateShortcut(); } } }); }