Bug 168503
| Summary: | [WK1] Key modifier are not passed to the WebView from the eventSender's mouse events | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Tomas Popela <tpopela> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ap, lforschler |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Tomas Popela
While creating a layout test for bug 168424 I was not able to make it pass on the MAC WK1.
If I use the eventSender.mouseUp(0, ['altKey']); in the test then the event is created in Tools/DumpRenderTree/mac/EventSendingController.mm in the mouseUp() function. In the modifierFlags function (in the same module) the altKey modifier is recognized and set. But then in Source/WebKit/mac/WebView/WebView.mm in the applicationFlags() function where we get the current event - [[NSApp currentEvent] modifierFlags] - it is 0 - no modifier set. The same applies for other modifiers as well. If I try the test in the MiniBrowser, then it works as expected.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |