[Webkit-unassigned] [Bug 191768] New: [iOS] Cannot prevent default key command in onkeydown handler

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 16 13:36:26 PST 2018


            Bug ID: 191768
           Summary: [iOS] Cannot prevent default key command in onkeydown
           Product: WebKit
           Version: WebKit Local Build
          Hardware: iPhone / iPad
                OS: iOS 12
            Status: NEW
          Keywords: NeedsRadar
          Severity: Normal
          Priority: P2
         Component: Event Handling
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dbates at webkit.org
                CC: webkit-bug-importer at group.apple.com

A web page may implement their own key command handling and want to prevent the default browser behavior by calling Event.preventDefault() in their onkeydown handler. For example, a page may implement their own Find-in-page feature that is toggled by listening for Command + F, the same key command to trigger the default browser Find-in-page feature. Calling Event.preventDefault() in their onkeydown handler when they receive Command + F should prevent Safari from showing the Find-in-page UI. But it does not on iOS. It does on Mac.

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/20181116/4daac556/attachment.html>

More information about the webkit-unassigned mailing list