[webkit-dev] Keypress event for ctrl+key and/or ⌘+key?

Peter Kasting pkasting at google.com
Mon Oct 19 18:30:13 PDT 2009


On Mon, Oct 19, 2009 at 6:03 PM, Oliver Hunt <oliver at apple.com> wrote:

> The real issue is whether application shortcuts get precedence over DOM
> event handlers, currently on mac the DOM event handlers get precedence (and
> thus the ability to override/prevent application shortcuts) and on windows
> they don't.  This is entirely a byproduct of implementation and the
> difference really isn't something we want.
>

In Chromium, DOM event handlers get precedence (important for pages which
want to provide a custom find-in-page impl, or override ctrl-b ["toggle
bookmark bar"] to mean "bold text"), except for a small set of accelerators
relating to opening/closing/changing tabs/windows, which we don't send to
the renderer so that slow/hung renderers (or malicious pages, I suppose)
can't cause the user to be unable to instantly close the tab or switch to
another one.

PK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20091019/f5babf9a/attachment.html>


More information about the webkit-dev mailing list