Bug 1292519 - Can't Ctrl+Tab away after typing something in the location bar. r?florian
MozReview-Commit-ID: Gz8odgQl9oM
--- a/browser/components/search/content/search.xml
+++ b/browser/components/search/content/search.xml
@@ -1741,17 +1741,22 @@
<body><![CDATA[
if (!this.popup) {
return false;
}
let stopEvent = false;
// Tab cycles through the one-offs and moves the focus out at the end.
- if (event.keyCode == KeyEvent.DOM_VK_TAB) {
+ // But only if non-Shift modifiers aren't also pressed, to avoid
+ // clobbering other shortcuts.
+ if (event.keyCode == KeyEvent.DOM_VK_TAB &&
+ !event.altKey &&
+ !event.ctrlKey &&
+ !event.metaKey) {
stopEvent = this.advanceSelection(!event.shiftKey, false, true);
}
// Alt + up/down is very similar to (shift +) tab but differs in that
// it loops through the list, whereas tab will move the focus out.
else if (event.altKey &&
(event.keyCode == KeyEvent.DOM_VK_DOWN ||
event.keyCode == KeyEvent.DOM_VK_UP)) {