Bug 199475 - [iOS] Cannot preventDefault() in keypress to prevent Command + A
Summary: [iOS] Cannot preventDefault() in keypress to prevent Command + A
Status: ASSIGNED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Local Build
Hardware: iPhone / iPad Unspecified
: P2 Normal
Assignee: Daniel Bates
URL:
Keywords: PlatformOnly
Depends on:
Blocks: 190571
  Show dependency treegraph
 
Reported: 2019-07-03 16:07 PDT by Daniel Bates
Modified: 2019-07-03 16:15 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2019-07-03 16:07:24 PDT
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.