From 204a9cef021addb3848c4b68515e416b0d706c04 Mon Sep 17 00:00:00 2001 From: Bruno Boi Date: Fri, 13 Jan 2023 14:38:06 +0000 Subject: [PATCH] [FIX] web: shortcuts usermenu entry for Mac users MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit: > The command palette displays a footer tip about shortcut overlays. > The tip is false for MacOS users. > They cant see overlays with "ALT" key, they need to press "CONTROL". > They do not need to do "ALT + CONTROL" in order to trigger a shortcut, > only "CONTROL" is enough. After this commit > The tip is good for MacOS users too. closes odoo/odoo#110050 X-original-commit: 65dda569f45401c002fc34fb12718de709847bf0 Signed-off-by: Georis François (fge) Signed-off-by: Bruno Boi (boi) --- addons/web/static/src/webclient/user_menu/user_menu_items.js | 2 +- addons/web/static/src/webclient/user_menu/user_menu_items.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/webclient/user_menu/user_menu_items.js b/addons/web/static/src/webclient/user_menu/user_menu_items.js index 5659c72e3e2..11ddd5629cd 100644 --- a/addons/web/static/src/webclient/user_menu/user_menu_items.js +++ b/addons/web/static/src/webclient/user_menu/user_menu_items.js @@ -37,7 +37,7 @@ function supportItem(env) { class ShortcutsFooterComponent extends Component { setup() { - this.runShortcutKey = isMacOS() ? "ALT + CONTROL" : "ALT"; + this.runShortcutKey = isMacOS() ? "CONTROL" : "ALT"; } } ShortcutsFooterComponent.template = "web.UserMenu.ShortcutsFooterComponent"; diff --git a/addons/web/static/src/webclient/user_menu/user_menu_items.xml b/addons/web/static/src/webclient/user_menu/user_menu_items.xml index e56120c006a..dc2d85f65ce 100644 --- a/addons/web/static/src/webclient/user_menu/user_menu_items.xml +++ b/addons/web/static/src/webclient/user_menu/user_menu_items.xml @@ -3,7 +3,7 @@ - TIP — press ALT on any screen to show shortcut overlays and + KEY to trigger a shortcut. + TIP — press on any screen to show shortcut overlays and + KEY to trigger a shortcut.