Explorar o código

HUE-4307 [editor] Goto line number shorter conflicts with highlighting the address bar contents in Safari

Added ctrl/command J as alternative
Enrico Berti %!s(int64=9) %!d(string=hai) anos
pai
achega
ddd48c2

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

@@ -3012,6 +3012,12 @@
         }
       });
 
+      editor.commands.addCommand({
+        name: "gotolinealternetive",
+        bindKey: {win: "Ctrl-j", mac: "Command-j|Ctrl-j"},
+        exec: editor.commands.commands['gotoline'].exec
+      });
+
       huePubSub.subscribe("assist.dblClickDbItem", function(assistDbEntry) {
         if ($el.data("last-active-editor")) {
           var text = assistDbEntry.editorText();

+ 2 - 2
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -665,8 +665,8 @@ ${ hueIcons.symbols() }
         <td>${ _('Go to end')}</td>
       </tr>
       <tr>
-        <td>Ctrl-L</td>
-        <td>Command-L</td>
+        <td>Ctrl-L, Ctrl-J</td>
+        <td>Command-L, Command-J</td>
         <td>${ _('Go to line')}</td>
       </tr>
       <tr>