From dc24c05229037f6ec6f089211a33ff01dc04a467 Mon Sep 17 00:00:00 2001 From: Jesse Naranjo Date: Sun, 3 Jul 2016 18:10:51 -0400 Subject: [PATCH] Keyboard shortcuts dialog update (#923) * Added Ctrl+Z to the Keyboard Shortcuts dialog. * Added Arrow Keys and Shift + Arrow Keys shortcuts to the Keyboard Shortcuts dialog. * Added the [Backspace] key to the Keyboard Shortcuts dialog. --- editor/js/ui/keyboard.js | 10 +++++++++- red/api/locales/en-US/editor.json | 5 ++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/editor/js/ui/keyboard.js b/editor/js/ui/keyboard.js index 55e8d6419..5e321efa6 100644 --- a/editor/js/ui/keyboard.js +++ b/editor/js/ui/keyboard.js @@ -113,17 +113,25 @@ RED.keyboard = (function() { ' '+ 'Ctrl/⌘ + i'+RED._("keyboard.importNode")+''+ 'Ctrl/⌘ + e'+RED._("keyboard.exportNode")+''+ + ' '+ + ' '+RED._("keyboard.nudgeNode")+''+ + 'Shift + '+RED._("keyboard.moveNode")+''+ + 'Shift + '+ + 'Shift + '+ + 'Shift + '+ ''+ ''+ '
'+ ''+ ''+ ''+ - ''+ + ''+ + ''+ ''+ ''+ ''+ ''+ + ''+ '
Ctrl/⌘ + Space'+RED._("keyboard.toggleSidebar")+'
Delete'+RED._("keyboard.deleteNode")+'
Delete'+RED._("keyboard.deleteSelected")+'
Backspace
Ctrl/⌘ + c'+RED._("keyboard.copyNode")+'
Ctrl/⌘ + x'+RED._("keyboard.cutNode")+'
Ctrl/⌘ + v'+RED._("keyboard.pasteNode")+'
Ctrl/⌘ + z'+RED._("keyboard.undoChange")+'
'+ '
'+ '') diff --git a/red/api/locales/en-US/editor.json b/red/api/locales/en-US/editor.json index 25f048c8e..9a0ab3aac 100644 --- a/red/api/locales/en-US/editor.json +++ b/red/api/locales/en-US/editor.json @@ -147,11 +147,14 @@ "deleteSelected": "Delete selected nodes or link", "importNode": "Import nodes", "exportNode": "Export selected nodes", + "nudgeNode": "Move selected node(s) by a small amount", + "moveNode": "Move selected node(s) by a large amount", "toggleSidebar": "Toggle sidebar", "deleteNode": "Delete selected nodes or link", "copyNode": "Copy selected nodes", "cutNode": "Cut selected nodes", - "pasteNode": "Paste nodes" + "pasteNode": "Paste nodes", + "undoChange": "Undo the last change performed" }, "library": { "openLibrary": "Open Library...",