mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1554158 - Always consume the enter key in UrlbarInput. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D34268 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
3dd41f32a1
commit
1002cff1d3
@ -285,14 +285,10 @@ class UrlbarController {
|
||||
event.preventDefault();
|
||||
break;
|
||||
case KeyEvent.DOM_VK_RETURN:
|
||||
if (isMac &&
|
||||
event.metaKey) {
|
||||
// Prevent beep on Mac.
|
||||
event.preventDefault();
|
||||
}
|
||||
if (executeAction) {
|
||||
this.input.handleCommand(event);
|
||||
}
|
||||
event.preventDefault();
|
||||
break;
|
||||
case KeyEvent.DOM_VK_TAB:
|
||||
if (this.view.isOpen && !event.ctrlKey && !event.altKey) {
|
||||
|
Loading…
Reference in New Issue
Block a user