Skip to content

Commit

Permalink
Merge branch 'saas-11.3-fix-vsc' into saas-11.3
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSchippefilt committed Sep 24, 2018
2 parents 1ec6c06 + 9960e48 commit ab6293a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions addons/web/static/src/js/chrome/keyboard_navigation_mixin.js
Expand Up @@ -141,6 +141,13 @@ odoo.define('web.KeyboardNavigationMixin', function (require) {
});
this._addAccessKeyOverlays();
}
// on mac, there are a number of keys that are only accessible though the usage of
// the ALT key (like the @ sign in most keyboards)
// for them we do not facilitate the access keys, so they will need to be activated classically
// though Control + Alt + key (case sensitive), see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey
if (this.BrowserDetection.isOsMac())
return;

if (keyDownEvent.altKey && !keyDownEvent.ctrlKey && keyDownEvent.key.length === 1) { // we don't want to catch the Alt key down, only the characters A to Z and number keys
var elementWithAccessKey = [];
if (keyDownEvent.keyCode >= 65 && keyDownEvent.keyCode <= 90 || keyDownEvent.keyCode >= 97 && keyDownEvent.keyCode <= 122) {
Expand Down

0 comments on commit ab6293a

Please sign in to comment.