From 58acf3e0a7a2eaf115ab8647eaefd7ebabe00546 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Fri, 14 Mar 2025 04:27:54 +0100 Subject: [PATCH] editor: change r shortcut to y --- resources/docs/docs/user-interface/editor.md | 4 ++-- src/client/editor/context-menu.js | 2 +- src/client/editor/index.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/docs/docs/user-interface/editor.md b/resources/docs/docs/user-interface/editor.md index baa67e3c..bfa62544 100644 --- a/resources/docs/docs/user-interface/editor.md +++ b/resources/docs/docs/user-interface/editor.md @@ -102,7 +102,7 @@ Multiple widgets can be edited at once. | ++left++ | Select current widget's parent | | ++right++ | Select current widget's first child | | ++t++ | Show selected widget(s) in the project tree | - | ++r++ | Show selected widget(s) in the session | + | ++y++ | Show selected widget(s) in the session | | ++ctrl+f++ | Focus search input in project tree | | ++"Home"++ | Send selected widget to back | | ++"Page Up"++ | Send selected widget farther | @@ -144,7 +144,7 @@ Multiple widgets can be edited at once. | ++left++ | Select current widget's parent | | ++right++ | Select current widget's first child | | ++t++ | Show selected widget in the project tree | - | ++r++ | Show selected widget(s) in the session | + | ++y++ | Show selected widget(s) in the session | | ++cmd+f++ | Focus search input in project tree | | ++"Home"++ | Send selected widget to back | | ++"Page Up"++ | Send selected widget farther | diff --git a/src/client/editor/context-menu.js b/src/client/editor/context-menu.js index 6da2600c..a7f052e3 100644 --- a/src/client/editor/context-menu.js +++ b/src/client/editor/context-menu.js @@ -112,7 +112,7 @@ var handleClick = function(event) { editor.widgetTree.showWidgetInSession(w) } }, - shortcut: 'r' + shortcut: 'y' }) } diff --git a/src/client/editor/index.js b/src/client/editor/index.js index 56290938..410417a4 100644 --- a/src/client/editor/index.js +++ b/src/client/editor/index.js @@ -210,7 +210,7 @@ class Editor { 'home', 'end', 't', - 'r', + 'y', 'f2', 'h', 'mod + f' @@ -454,7 +454,7 @@ class Editor { this.widgetTree.showWidget(editor.selectedWidgets[0]) this.widgetTree.blinkSelected() break - case 'r': + case 'y': if (!this.selectedWidgets.length) return for (let w of editor.selectedWidgets) { this.widgetTree.showWidgetInSession(w)