Bug 199475
| Summary: | [iOS] Cannot preventDefault() in keypress to prevent Command + A | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Daniel Bates <dbates> |
| Component: | WebKit Misc. | Assignee: | Daniel Bates <dbates> |
| Status: | ASSIGNED | ||
| Severity: | Normal | CC: | karlcow, wenson_hsieh |
| Priority: | P2 | Keywords: | PlatformOnly |
| Version: | WebKit Local Build | ||
| Hardware: | iPhone / iPad | ||
| OS: | Unspecified | ||
| See Also: |
https://bugs.webkit.org/show_bug.cgi?id=199257 https://bugs.webkit.org/show_bug.cgi?id=30397 |
||
| Bug Depends on: | |||
| Bug Blocks: | 190571 | ||
Daniel Bates
Steps to reproduce:
1. Visit <https://unixpapa.com/js/testkey.html>
If you have a build with the fix for bug #199257 then:
2. Ensure default handling of keypress is suppressed.
3. Press Command + A
Otherwise:
2. Press some keys, like a, b, c.
3. Ensure default handling of keypress is suppressed.
4. Focus the text field.
5. Press Command + A
Then the content of the page (if you have the fix for bug #199257) or briefly the contents of the field will be selected. But Command + A should have been selected. Compare to Mac.
Note, Command + A can be prevented from keydown on iOS.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |