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:
Dão Gottwald 2019-06-11 09:27:51 +00:00
parent 3dd41f32a1
commit 1002cff1d3

View File

@ -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) {