From d6c966934d64bb4609dc7396cd28c6e7b4b17d80 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Tue, 21 Jun 2016 16:53:50 +0100 Subject: [PATCH] Set the key binding which is reported on Windows. --- .../public/coffee/ide/editor/directives/aceEditor.coffee | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor.coffee index 596f350812..800d6bd194 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor.coffee @@ -74,15 +74,17 @@ define [ editor.commands.removeCommand "foldall" # For European keyboards, the / is above 7 so needs Shift pressing. - # This comes through as Ctrl-Shift-/ which is mapped to toggleBlockComment. + # This comes through as Command-Shift-/ on OS X, which is mapped to + # toggleBlockComment. # This doesn't do anything for LaTeX, so remap this to togglecomment to # work for European keyboards as normal. + # On Windows, the key combo comes as Ctrl-Shift-7. editor.commands.removeCommand "toggleBlockComment" editor.commands.removeCommand "togglecomment" editor.commands.addCommand { name: "togglecomment", - bindKey: { win: "Ctrl-/|Ctrl-Shift-/", mac: "Command-/|Command-Shift-/" }, + bindKey: { win: "Ctrl-/|Ctrl-Shift-7", mac: "Command-/|Command-Shift-/" }, exec: (editor) -> editor.toggleCommentLines(), multiSelectAction: "forEachLine", scrollIntoView: "selectionPart"