mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-28 00:07:28 +00:00
Bug 588478 - Escape should not open tab from fan view of stacked tabs [r=dolske a=dolske]
--HG-- extra : rebase_source : 1a77634fa20cc1bfb42d816dfe2551809f03f116
This commit is contained in:
parent
ba01e8292d
commit
5dd46a92bd
@ -608,10 +608,15 @@ var UIManager = {
|
||||
} else if (event.keyCode == KeyEvent.DOM_VK_ESCAPE ||
|
||||
event.keyCode == KeyEvent.DOM_VK_RETURN ||
|
||||
event.keyCode == KeyEvent.DOM_VK_ENTER) {
|
||||
// esc or return to zoom into the active tab.
|
||||
var activeTab = self.getActiveTab();
|
||||
if (activeTab)
|
||||
activeTab.zoomIn();
|
||||
let activeTab = self.getActiveTab();
|
||||
let activeGroupItem = GroupItems.getActiveGroupItem();
|
||||
|
||||
if (activeGroupItem && activeGroupItem.expanded &&
|
||||
event.keyCode == KeyEvent.DOM_VK_ESCAPE)
|
||||
activeGroupItem.collapse();
|
||||
else if (activeTab)
|
||||
activeTab.zoomIn();
|
||||
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
} else if (event.keyCode == KeyEvent.DOM_VK_TAB) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user