From cef0e23f99e299ac4f61f1df984497512f2e35fa Mon Sep 17 00:00:00 2001 From: Komsit Date: Tue, 12 Apr 2016 10:14:12 +0900 Subject: [PATCH] fix auto complete not closing bug --- q_out_popup.py | 1 + sublime/Default (OSX).sublime-keymap | 2 +- sublime/Default (Windows).sublime-keymap | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/q_out_popup.py b/q_out_popup.py index 0d1c4f1..2d27b8b 100644 --- a/q_out_popup.py +++ b/q_out_popup.py @@ -90,3 +90,4 @@ def do(self, edit=None, input=None): print('force close popup') QOutPopupBaseCommand.TO_CLOSE = False self.view.hide_popup() + return '' #return something so q_chain can continue diff --git a/sublime/Default (OSX).sublime-keymap b/sublime/Default (OSX).sublime-keymap index 8a078b3..4eefc9c 100644 --- a/sublime/Default (OSX).sublime-keymap +++ b/sublime/Default (OSX).sublime-keymap @@ -5,7 +5,7 @@ { "keys": ["super+j"], "command": "q_chain", "args": {"chain": ["q_select_text", "q_send_json", "q_out_popup_json", "q_update_completions"]}}, { "keys": ["super+shift+enter"],"command": "q_chain", "args": {"chain": ["q_select_text", "q_send_json", "q_out_panel", "q_update_completions"]}}, - { "keys": ["escape"], "command": "q_chain", "args": {"chain": ["q_out_popup_close"]}}, + { "keys": ["escape"], "command": "q_chain", "args": {"chain": ["q_out_popup_close", "hide_auto_complete"]}}, //connection { "keys": ["super+alt+q"], "command": "show_connection_list"}, diff --git a/sublime/Default (Windows).sublime-keymap b/sublime/Default (Windows).sublime-keymap index 5b2162d..fe1fb5a 100644 --- a/sublime/Default (Windows).sublime-keymap +++ b/sublime/Default (Windows).sublime-keymap @@ -5,7 +5,7 @@ { "keys": ["ctrl+j"], "command": "q_chain", "args": {"chain": ["q_select_text", "q_send_json", "q_out_popup_json", "q_update_completions"]}}, { "keys": ["ctrl+shift+enter"],"command": "q_chain", "args": {"chain": ["q_select_text", "q_send_json", "q_out_panel", "q_update_completions"]}}, - { "keys": ["escape"], "command": "q_chain", "args": {"chain": ["q_out_popup_close"]}}, + { "keys": ["escape"], "command": "q_chain", "args": {"chain": ["q_out_popup_close", "hide_auto_complete"]}}, //connection { "keys": ["ctrl+alt+q"], "command": "show_connection_list"},