mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 950075 - Don't forward non-navigation keys to the menu list [r=rsilveira]
This commit is contained in:
parent
c0e72f30a8
commit
7166747176
@ -522,7 +522,6 @@ MenuPopup.prototype = {
|
||||
aEvent.charCode); // in unsigned long charCodeArg);
|
||||
|
||||
ev.mine = true;
|
||||
this.commands.dispatchEvent(ev);
|
||||
|
||||
switch (aEvent.keyCode) {
|
||||
case aEvent.DOM_VK_ESCAPE:
|
||||
@ -537,6 +536,7 @@ MenuPopup.prototype = {
|
||||
if (Util.isNavigationKey(aEvent.keyCode)) {
|
||||
aEvent.stopPropagation();
|
||||
aEvent.preventDefault();
|
||||
this.commands.dispatchEvent(ev);
|
||||
} else if (!this._wantTypeBehind) {
|
||||
// Hide the context menu so you can't type behind it.
|
||||
aEvent.stopPropagation();
|
||||
|
Loading…
Reference in New Issue
Block a user