NEW 189388
[iOS] Add test to ensure that arrow keys dispatch DOM events to editable elements
https://bugs.webkit.org/show_bug.cgi?id=189388
Summary [iOS] Add test to ensure that arrow keys dispatch DOM events to editable elem...
Daniel Bates
Reported 2018-09-06 17:27:37 PDT
uiController.typeCharacterUsingHardwareKeyboard("leftArrow", ...) and similar invocations for other arrow keys inside a focused input field does cause DOM Keyup events to be dispatched.
Attachments
Layout test (4.22 KB, patch)
2018-09-07 15:24 PDT, Daniel Bates
no flags
Daniel Bates
Comment 1 2018-09-07 13:59:50 PDT
(In reply to Daniel Bates from comment #0) > uiController.typeCharacterUsingHardwareKeyboard("leftArrow", ...) and > similar invocations for other arrow keys inside a focused input field does > cause DOM Keyup events to be dispatched. *does not cause DOM Keyup events to be dispatched.
Daniel Bates
Comment 2 2018-09-07 14:45:50 PDT
Actually, I can reproduce this issue in Mobile Safari using focusing the text area on <https://unixpapa.com/js/testkey.html> and pressing the arrow keys on the keyboard. That is, no DOM events are dispatched. Therefore, this issue is not specific to test infrastructure.
Daniel Bates
Comment 3 2018-09-07 15:24:55 PDT
Created attachment 349205 [details] Layout test
Daniel Bates
Comment 4 2018-09-07 15:27:46 PDT
Using the attached layout test (attachment #349205 [details]) we only seem to dispatch a keyup and keydown for the arrow up key (why?). The test times out as a result of waiting for keyup and keydown events for other arrows keys.
Radar WebKit Bug Importer
Comment 5 2018-09-19 01:54:22 PDT
Daniel Bates
Comment 6 2018-09-26 15:24:27 PDT
Note You need to log in before you can comment on or make changes to this bug.