-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alt modifier keys not working in chrome on mac but works in windows. #31
Comments
alt + a produces a keyboard event which has |
+1 |
Actually, the problem is not the fact that a key like "å"is produced. Even if one registers a keyboard shortcut as follows on Mac, it does not trigger at all. behaviors: [
Polymer.IronA11yKeysBehavior,
],
keyBindings: {
'alt+ç': 'onMyShortcut_',
}, Digging through the code, there seems to be an arbitrary limitation in iron-a11y-keys-behavior, at // For combos with modifiers we support only alpha-numeric keys
var keyEvent = normalizedKeyForEvent(event, keyCombo.hasModifiers); Further following this codepath, it goes into Is there a good reason for this limitation? If Or at the very least, there should be a way to turn off the |
Description
The
iron-ally-keys
element does not work with alt modifier in chrome,firefox,opera on mac. But works with safari and windows. It can be seen in the demo page. https://elements.polymer-project.org/elements/iron-a11y-keys?view=demo:demo/index.html&active=iron-a11y-keys Navigate to demo page in chrome on mac and press alt+aExpected outcome
It should display alt+a.
Actual outcome
Nothing is displayed
Live Demo
https://elements.polymer-project.org/elements/iron-a11y-keys?view=demo:demo/index.html&active=iron-a11y-keys
Steps to reproduce
Browsers Affected
The text was updated successfully, but these errors were encountered: