From d6549d91f5117036d666596bfdeb8160a0d20b42 Mon Sep 17 00:00:00 2001 From: ryohei22 Date: Wed, 12 Jul 2023 22:23:17 +0900 Subject: [PATCH] Add key binding 'ctrl+[' --- spyder_vim/spyder/plugin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spyder_vim/spyder/plugin.py b/spyder_vim/spyder/plugin.py index 4639591..e58afe6 100644 --- a/spyder_vim/spyder/plugin.py +++ b/spyder_vim/spyder/plugin.py @@ -68,6 +68,11 @@ def on_editor_available(self): editor.editorsplitter, self.vim_cmd.commandline.setFocus) sc.setContext(Qt.WidgetWithChildrenShortcut) + sc2 = QShortcut( + QKeySequence(Qt.META + Qt.Key_BracketLeft), + editor.editorsplitter, + self.vim_cmd.commandline.setFocus) + sc2.setContext(Qt.WidgetWithChildrenShortcut) def check_compatibility(self): valid = True