[Webkit-unassigned] [Bug 40474] New: [Qt] In Carbon event model, control & command modifiers are reversed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 11 05:18:14 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=40474

           Summary: [Qt] In Carbon event model, control & command
                    modifiers are reversed
           Product: WebKit
           Version: 420+
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: qt-info at nokia.com
                CC: vestbo at webkit.org


In the Carbon event model, the modifier flags for the control & command keys are reversed. 

When an event is received in NPP_HandleEvent, in the EventRecord's "modifiers" field, the cmdKey bit (from the classic Events.h header file) is set when the control key is pressed, and the controlKey bit is set when the command key is pressed.

The Qt API does this by default, but this problem pertains to the NPAPI part of WebKit, which has its own standards independent of Qt. 

To illustrate further, imagine what happens if a plugin supports the Carbon event model from multiple browsers, one of them being Qt's WebKit. The non-Qt browsers would set the cmdKey bit for the command key, which doesn't match what Qt's WebKit does. So the plugin would have to swap the meaning of cmdKey and controlKey only for Qt (probably by examining the user agent).

(Bug reported against Qt version 4.6.2)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list