Bug 229928 - [Win] PlatformWebView::simulateSpacebarKeyPress sends wrong scan code for the space key and Alt key
Summary: [Win] PlatformWebView::simulateSpacebarKeyPress sends wrong scan code for the...
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: 2021-09-05 18:28 PDT by Fujii Hironori
Modified: 2021-09-07 19:13 PDT (History)
3 users (show)

See Also:


Attachments
Patch (3.16 KB, patch)
2021-09-05 18:33 PDT, 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 2021-09-05 18:28:14 PDT
[Win] PlatformWebView::simulateSpacebarKeyPress sends a wrong scan code for the space key

PlatformWebView::simulateSpacebarKeyPress sends 39, but it should be 0x39.
PlatformWebView::simulateAltKeyPress send 38, but it should be 0x38.

These code were originally added by r69671.

The scan codes are defined in WindowsKeyNames.cpp.

https://github.com/WebKit/WebKit/blob/1447dba3960bb20229b5caefdcd61a3f9a2bf276/Source/WebCore/platform/win/WindowsKeyNames.cpp#L362,L363

>    { 0x0038, "AltLeft"_s },
>    { 0x0039, "Space"_s },
Comment 1 Fujii Hironori 2021-09-05 18:33:04 PDT
Created attachment 437372 [details]
Patch
Comment 2 Fujii Hironori 2021-09-07 19:12:15 PDT
Comment on attachment 437372 [details]
Patch

Clearing flags on attachment: 437372

Committed r282124 (241421@main): <https://commits.webkit.org/241421@main>
Comment 3 Fujii Hironori 2021-09-07 19:12:18 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2021-09-07 19:13:15 PDT
<rdar://problem/82850842>