mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 950075 - Don't forward non-navigation keys to the menu list [r=rsilveira]
This commit is contained in:
parent
7ab0a7f7ea
commit
6da77cb0a5
@ -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