Chrome recently added functionality to this key combination. Its used in a few sims for a reset shortcut.
How do we want to handle this overlap (and potentially others in the future).
- We could use
preventDefault for this. I think that is reasonable for scenery applications. If we do that, we need a better way to preventDefault in scenery that doesn' have us going through the DOM event like sceneryEvent.domEvent.preventDefault(). Lets add an option to Hotkey or KeyboardListener for this. Lets consider adding a reusable "reset" Hotkey that also prevents default automatically.
- We could change the keys used and avoid these. Its difficult to find good keys. We decided to use "alt" because it works globally when a screen reader is used (letter keys require application role or "forms" mode). However, avoiding typical modifier keys would be far less likely to overlap with default browser behavior.
Chrome recently added functionality to this key combination. Its used in a few sims for a reset shortcut.
How do we want to handle this overlap (and potentially others in the future).
preventDefaultfor this. I think that is reasonable for scenery applications. If we do that, we need a better way to preventDefault in scenery that doesn' have us going through the DOM event likesceneryEvent.domEvent.preventDefault(). Lets add an option to Hotkey or KeyboardListener for this. Lets consider adding a reusable "reset" Hotkey that also prevents default automatically.