[FIX] web: shortcuts usermenu entry for Mac users
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) <fge@odoo.com> Signed-off-by: Bruno Boi (boi) <boi@odoo.com>
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<t t-name="web.UserMenu.ShortcutsFooterComponent" owl="1">
|
||||
<span>
|
||||
<span class='fw-bolder text-primary'>TIP</span> — press <span class='fw-bolder text-primary'>ALT</span> on any screen to show shortcut overlays and <span class='fw-bolder text-primary'><t t-esc="runShortcutKey"/> + KEY</span> to trigger a shortcut.
|
||||
<span class='fw-bolder text-primary'>TIP</span> — press <span class='fw-bolder text-primary'><t t-esc="runShortcutKey"/></span> on any screen to show shortcut overlays and <span class='fw-bolder text-primary'><t t-esc="runShortcutKey"/> + KEY</span> to trigger a shortcut.
|
||||
</span>
|
||||
</t>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user