+143
−0
Loading
Bug 1879765 - part 1: Make `NativeKey` consume printable `eKeyDown` event before dispatch if the key down is fired only with `WM_SYSKEYDOWN` r=m_kato 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