Browse Source

HUE-6309 [editor] Enable Ctrl-p to go up a line in the Ace editor

Johan Ahlen 8 years ago
parent
commit
4e9b467
1 changed files with 2 additions and 0 deletions
  1. 2 0
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 2 - 0
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -4030,6 +4030,8 @@
         }
         }
       });
       });
 
 
+      editor.commands.bindKey("Ctrl-P", "golineup");
+
       editor.commands.addCommand({
       editor.commands.addCommand({
         name: "format",
         name: "format",
         bindKey: {win: "Ctrl-i|Ctrl-Shift-f|Ctrl-Alt-l", mac: "Command-i|Ctrl-i|Ctrl-Shift-f|Command-Shift-f|Ctrl-Shift-l|Cmd-Shift-l"},
         bindKey: {win: "Ctrl-i|Ctrl-Shift-f|Ctrl-Alt-l", mac: "Command-i|Ctrl-i|Ctrl-Shift-f|Command-Shift-f|Ctrl-Shift-l|Cmd-Shift-l"},