| Summary: | [iOS] Add test to ensure that arrow keys dispatch DOM events to editable elements | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Daniel Bates <dbates> | ||||
| Component: | UI Events | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | NEW --- | ||||||
| Severity: | Normal | CC: | ap, lforschler, megan_gardner, rniwa, simon.fraser, thorton, webkit-bug-importer, wenson_hsieh | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Local Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| URL: | https://unixpapa.com/js/testkey.html | ||||||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=189325 https://bugs.webkit.org/show_bug.cgi?id=189389 |
||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 190571 | ||||||
| Attachments: |
|
||||||
(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. 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. Created attachment 349205 [details]
Layout test
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.
|
uiController.typeCharacterUsingHardwareKeyboard("leftArrow", ...) and similar invocations for other arrow keys inside a focused input field does cause DOM Keyup events to be dispatched.