Bug 229928

Summary: [Win] PlatformWebView::simulateSpacebarKeyPress sends wrong scan code for the space key and Alt key
Product: WebKit Reporter: Fujii Hironori <Hironori.Fujii>
Component: Tools / TestsAssignee: Fujii Hironori <Hironori.Fujii>
Status: RESOLVED FIXED    
Severity: Normal CC: don.olmstead, ross.kirsling, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

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>