mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-15 17:55:15 -10:00
When a printable key is pressed with `Alt`, Windows notify us of `WM_SYSKEYDOWN` and `WM_SYSCHAR`. However, if the builtin IME for inputting a Unicode character consumes some printable key presses, Windows does not notify us of `WM_SYSCHAR`. Therefore, if `WM_SYSKEYDOWN` comes without `WM_SYSCHAR`, we should consume the `eKeyDown` before dispatching the event so that the key press won't be handled by access key of the menu nor the content. Differential Revision: https://phabricator.services.mozilla.com/D207956