mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
On MacOS, pressing the alt key and another key turns into symbols, and doesn't match the intended behavior. For example, `keydown.alt.s` reports instead as `keydown.alt.ß`. We rely on the `key` field and not the `code` field, which properly reports the code for S in this case. This change adds support to allow users to specify they want to look at the `code` field instead of the `key` field within their event string. Example: `keydown.code.alt.leftshift` would only match the LeftShift and not the right shift based on code values. It would also allow the user to specify `keydown.code.alt.keys` to match S instead of ß when alt / option is pressed on MacOS and would also work on Windows. Fixes #45992 PR Close #46030 |
||
|---|---|---|
| .. | ||
| events | ||
| dom_renderer_spec.ts | ||
| shadow_dom_spec.ts | ||
| shared_styles_host_spec.ts | ||