Bug 228155

Summary: macOS key-driven smooth scrolling does not work for spacebar
Product: WebKit Reporter: Dana Estra <dana.estra>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: akeerthi, bdakin, simon.fraser, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 228009    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch
none
Patch ews-feeder: commit-queue-

Dana Estra
Reported 2021-07-21 12:26:41 PDT
spacebar and spacebar+shift do not case any movement
Attachments
Patch (1.50 KB, patch)
2021-07-26 12:24 PDT, Dana Estra
no flags
Patch (1.51 KB, patch)
2021-07-26 12:40 PDT, Dana Estra
no flags
Patch (1.51 KB, patch)
2021-07-28 13:21 PDT, Dana Estra
ews-feeder: commit-queue-
Radar WebKit Bug Importer
Comment 1 2021-07-21 12:37:40 PDT
Dana Estra
Comment 2 2021-07-26 12:24:39 PDT
Dana Estra
Comment 3 2021-07-26 12:40:29 PDT
Tim Horton
Comment 4 2021-07-26 13:05:18 PDT
Comment on attachment 434226 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=434226&action=review > Source/WebCore/platform/KeyboardScrollingAnimator.cpp:237 > - if (event.type() != eventNames().keydownEvent) > + if (!(event.type() == eventNames().keydownEvent || event.type() == eventNames().keypressEvent)) Hmm, I'm not sure this is right. Are you not getting `keydown` for the spacebar? If not, you probably want to figure out who is eating it.
Tim Horton
Comment 5 2021-07-28 12:17:44 PDT
Comment on attachment 434226 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=434226&action=review >> Source/WebCore/platform/KeyboardScrollingAnimator.cpp:237 >> + if (!(event.type() == eventNames().keydownEvent || event.type() == eventNames().keypressEvent)) > > Hmm, I'm not sure this is right. Are you not getting `keydown` for the spacebar? If not, you probably want to figure out who is eating it. I guess it's OK (a bit weird, but existing weirdness); EventHandler::defaultSpaceEventHandler itself asserts it's only called with keypress, and the other callers of this call it explicitly only for keydown, so we won't get duplicates.
Tim Horton
Comment 6 2021-07-28 13:09:39 PDT
Can't cq+ this till the other patch lands :)
Dana Estra
Comment 7 2021-07-28 13:21:48 PDT
EWS
Comment 8 2021-07-30 16:04:14 PDT
Committed r280501 (240133@main): <https://commits.webkit.org/240133@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 434453 [details].
Note You need to log in before you can comment on or make changes to this bug.