Bug 204146 - [Win][DumpRenderTree][WebKitTestRunner] eventSender.keyDown should support function keys
Summary: [Win][DumpRenderTree][WebKitTestRunner] eventSender.keyDown should support fu...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Fujii Hironori
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-11-13 01:10 PST by Fujii Hironori
Modified: 2019-11-13 17:57 PST (History)
6 users (show)

See Also:


Attachments
Patch (16.40 KB, patch)
2019-11-13 01:44 PST, Fujii Hironori
no flags Details | Formatted Diff | Diff
Patch for landing (16.80 KB, patch)
2019-11-13 17:52 PST, Fujii Hironori
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2019-11-13 01:10:31 PST
[Win][DumpRenderTree][WebKitTestRunner] eventSender.keyDown should support function keys

fast/events/keydown-function-keys.html is failing for AppleWin and WinCairo ports.
Comment 1 Fujii Hironori 2019-11-13 01:44:21 PST
Created attachment 383440 [details]
Patch
Comment 2 Fujii Hironori 2019-11-13 03:41:15 PST
Comment on attachment 383440 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=383440&action=review

> Tools/DumpRenderTree/win/EventSender.cpp:465
> +        // Some keys need to turn on KF_EXTENDED explicitly

This is a hack to work around a bug of MapVirtualKey and MapVirtualKeyEx doesn't work as expected.

MapVirtualKey(), GetKeyNameText(), and a story of how to get proper names for the arrow keys - setnode.com
http://www.setnode.com/blog/mapvirtualkey-getkeynametext-and-a-story-of-how-to/

http://www.setnode.com/blog/mapvirtualkey-getkeynametext-and-a-story-of-how-to/#comment-1104594462

> Even using MapVirtualKeyEx() doesn't make MAPVK_VK_TO_VSC_EX behave the way the docs seem to imply.
Comment 3 Ross Kirsling 2019-11-13 15:18:39 PST
Comment on attachment 383440 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=383440&action=review

r=me

>> Tools/DumpRenderTree/win/EventSender.cpp:465
>> +        // Some keys need to turn on KF_EXTENDED explicitly
> 
> This is a hack to work around a bug of MapVirtualKey and MapVirtualKeyEx doesn't work as expected.
> 
> MapVirtualKey(), GetKeyNameText(), and a story of how to get proper names for the arrow keys - setnode.com
> http://www.setnode.com/blog/mapvirtualkey-getkeynametext-and-a-story-of-how-to/
> 
> http://www.setnode.com/blog/mapvirtualkey-getkeynametext-and-a-story-of-how-to/#comment-1104594462

Perhaps this info should be added to the ChangeLog?
Comment 4 Fujii Hironori 2019-11-13 17:33:16 PST
Comment on attachment 383440 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=383440&action=review

>>> Tools/DumpRenderTree/win/EventSender.cpp:465
>>> +        // Some keys need to turn on KF_EXTENDED explicitly
>> 
>> This is a hack to work around a bug of MapVirtualKey and MapVirtualKeyEx doesn't work as expected.
>> 
>> MapVirtualKey(), GetKeyNameText(), and a story of how to get proper names for the arrow keys - setnode.com
>> http://www.setnode.com/blog/mapvirtualkey-getkeynametext-and-a-story-of-how-to/
>> 
>> http://www.setnode.com/blog/mapvirtualkey-getkeynametext-and-a-story-of-how-to/#comment-1104594462
> 
> Perhaps this info should be added to the ChangeLog?

Will do.
Comment 5 Fujii Hironori 2019-11-13 17:52:17 PST
Created attachment 383531 [details]
Patch for landing
Comment 6 Fujii Hironori 2019-11-13 17:56:06 PST
Committed r252441: <https://trac.webkit.org/changeset/252441>
Comment 7 Radar WebKit Bug Importer 2019-11-13 17:57:54 PST
<rdar://problem/57176065>