Bug 16271 - Don't fire a mousemove event when a modifier key is pressed
Summary: Don't fire a mousemove event when a modifier key is pressed
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.4
: P3 Normal
Assignee: Nobody
URL: http://bugs.webkit.org/attachment.cgi...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2007-12-03 03:32 PST by Alexey Proskuryakov
Modified: 2021-07-29 13:30 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2007-12-03 03:32:52 PST
From bug 13341: we fire a fake mousemove event when a modifier key is pressed. We shouldn't.

Currently, it's needed to cause things like the status bar message to update.
Comment 1 David 2015-01-12 14:55:54 PST
Is there a workaround for this bug? Is there a way to disambiguate fake mousemove events from real ones, does one of the event properties identifies this as a modifier type mousemove?
Comment 2 Simon Fraser (smfr) 2021-07-29 13:22:37 PDT
In WebKit2 this comes out of this code:

            m_flagsChangedEventMonitor = [NSEvent addLocalMonitorForEventsMatchingMask:NSEventMaskFlagsChanged handler:[weakThis] (NSEvent *flagsChangedEvent) {
                if (weakThis)
                    weakThis->postFakeMouseMovedEventForFlagsChangedEvent(flagsChangedEvent);
                return flagsChangedEvent;
            }];
Comment 3 Radar WebKit Bug Importer 2021-07-29 13:26:45 PDT
<rdar://problem/81287778>
Comment 4 Simon Fraser (smfr) 2021-07-29 13:26:46 PDT
https://twitter.com/brianskold/status/1420312185444601856
Comment 5 Radar WebKit Bug Importer 2021-07-29 13:27:04 PDT
<rdar://problem/81287802>