зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
d1c68e3e76
Коммит
d3ddb7c905
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче