[Webkit-unassigned] [Bug 200558] [Win][WebKit2] Can't prevent input events by canceling keydown events

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 3 21:44:54 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=200558

--- Comment #2 from Fujii Hironori <Hironori.Fujii at sony.com> ---
In old WebKit2 approach, TranslateMessage was called if a keydown
event isn't comsumed.

This has two problems:
1. This method can't be used in applications which is using TranslateMessage normally.
   For example and particularly, MiniBrowser can't use it because it supports WK1 and WK2 windows.
2. keypress event could be dispatched after keyup event unexpectedly.
   For example, if I type VK_A and VK_B quickly. Following native key events are queued:

     WM_KEYDOWN (VK_A)
     WM_KEYUP (VK_A)
     WM_KEYDOWN (VK_B)
     WM_KEYUP (VK_B)

   The first WM_KEYDOWN is sent to web process, and remaining events are queued in m_keyEventQueue.
   In didNotHandleKeyEvent of the first event, WM_CHAR (a) is posted by TranslateMessage.
   This is too late.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191004/3402f742/attachment.html>


More information about the webkit-unassigned mailing list