diff --git a/keybindings.json b/keybindings.json index 4f015bd2cf..28d6dee61d 100644 --- a/keybindings.json +++ b/keybindings.json @@ -317,8 +317,12 @@ }, { "key": "meta+w", - "command": "closeFindWidget", - "when": "editorFocus && findWidgetVisible" + "command": "emacs-mcx.executeCommands", + "when": "editorFocus && findWidgetVisible", + "args": [ + "closeFindWidget", + "emacs-mcx.copyRegion" + ] }, { "key": "ctrl+y", diff --git a/package.json b/package.json index b0fbe3d8dd..0a3575701f 100644 --- a/package.json +++ b/package.json @@ -867,19 +867,31 @@ }, { "key": "alt+w", - "command": "closeFindWidget", - "when": "editorFocus && findWidgetVisible && !config.emacs-mcx.useMetaPrefixMacCmd" + "command": "emacs-mcx.executeCommands", + "when": "editorFocus && findWidgetVisible && !config.emacs-mcx.useMetaPrefixMacCmd", + "args": [ + "closeFindWidget", + "emacs-mcx.copyRegion" + ] }, { "key": "alt+w", "mac": "cmd+w", - "command": "closeFindWidget", - "when": "editorFocus && findWidgetVisible && config.emacs-mcx.useMetaPrefixMacCmd" + "command": "emacs-mcx.executeCommands", + "when": "editorFocus && findWidgetVisible && config.emacs-mcx.useMetaPrefixMacCmd", + "args": [ + "closeFindWidget", + "emacs-mcx.copyRegion" + ] }, { "key": "escape w", - "command": "closeFindWidget", - "when": "editorFocus && findWidgetVisible && config.emacs-mcx.useMetaPrefixEscape" + "command": "emacs-mcx.executeCommands", + "when": "editorFocus && findWidgetVisible && config.emacs-mcx.useMetaPrefixEscape", + "args": [ + "closeFindWidget", + "emacs-mcx.copyRegion" + ] }, { "key": "ctrl+y", @@ -1482,4 +1494,4 @@ "winston": "^3.3.3", "winston-console-for-electron": "^0.0.6" } -} +} \ No newline at end of file