Bug 77465 - key state flags do not function on drag events
Summary: key state flags do not function on drag events
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on:
Reported: 2012-01-31 12:36 PST by Clint Priest
Modified: 2022-09-02 17:59 PDT (History)
6 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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