зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1491874: Prevent raising the toolbox. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D40378 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
de32ac622a
Коммит
5041bdc10b
|
@ -160,6 +160,9 @@ Tools.inspector = {
|
|||
inMenu: true,
|
||||
|
||||
preventClosingOnKey: true,
|
||||
// preventRaisingOnKey is used to keep the focus on the content window for shortcuts
|
||||
// that trigger the element picker.
|
||||
preventRaisingOnKey: true,
|
||||
onkey: function(panel, toolbox) {
|
||||
toolbox.inspectorFront.nodePicker.togglePicker();
|
||||
},
|
||||
|
|
|
@ -293,7 +293,9 @@ var gDevToolsBrowser = (exports.gDevToolsBrowser = {
|
|||
toolDefinition.preventClosingOnKey ||
|
||||
toolbox.hostType == Toolbox.HostType.WINDOW
|
||||
) {
|
||||
toolbox.raise();
|
||||
if (!toolDefinition.preventRaisingOnKey) {
|
||||
toolbox.raise();
|
||||
}
|
||||
} else {
|
||||
toolbox.destroy();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче