Bug 77465

Summary: key state flags do not function on drag events
Product: WebKit Reporter: Clint Priest <webkit>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, bdakin, govett, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows 7   
See Also: https://bugs.webkit.org/show_bug.cgi?id=86236
https://bugs.webkit.org/show_bug.cgi?id=202418

Description Clint Priest 2012-01-31 12:36:25 PST
ctrlKey, altKey, shiftKey and keyCode do not function on dragover and other drag events.  They always report false or 0.
Comment 1 Devon Govett 2022-09-01 18:24:10 PDT
This is still a problem in the latest version of Safari on macOS for drags initiated within the page. For drags initiated in external applications like Finder, the modifier key properties do update as expected.

On iOS, this also works as expected.

A related issue is https://bugs.webkit.org/show_bug.cgi?id=202418. The modifier key properties actually are set, but only if you hold the key down before dragging rather than pressing it while dragging. However, if you release the key while dragging, the property does not update in subsequent events.
Comment 2 Radar WebKit Bug Importer 2022-09-02 17:59:07 PDT
<rdar://problem/99511310>