forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1878273 - Make
Shift
+ right click should work as a right click…
… without `Shift` if contextmenu should forcibly be open r=emilio We have a pref, `dom.event.contextmenu.shift_suppresses_event`, which is default to make `Shift` + right click forcibly open the context menu without dispatching `contextmenu` event to the web. When user wants to use this feature, they may (or must) assume that it works as a right click (without `Shift`) except whether it overrides `contextmenu` event listener of the web app. Therefore, `Selection` should be collapsed at the click point instead of expanding to the click point. Unfortunately, we need to consider it at `mousedown`, not `mouseup` nor `contextmenu`. Therefore, `Shift` state may mismatch with the actual state at `mouseup` and `mousedown`/`poinerdown` listeners of web apps may assume it will expand selection, but I think that we cannot solve these issues. Differential Revision: https://phabricator.services.mozilla.com/D201054
- Loading branch information
1 parent
5a2f926
commit 6678244
Showing
3 changed files
with
147 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters