зеркало из https://github.com/mozilla/gecko-dev.git
Bug 942946 - ESC closes Responsive Design Mode while opening Web Console split view. r=paul
This commit is contained in:
Родитель
156d36df5b
Коммит
9115c8772b
|
@ -176,7 +176,7 @@ function ResponsiveUI(aWindow, aTab)
|
||||||
// Events
|
// Events
|
||||||
this.tab.addEventListener("TabClose", this);
|
this.tab.addEventListener("TabClose", this);
|
||||||
this.tabContainer.addEventListener("TabSelect", this);
|
this.tabContainer.addEventListener("TabSelect", this);
|
||||||
this.mainWindow.document.addEventListener("keypress", this.bound_onKeypress, false);
|
this.mainWindow.document.addEventListener("keypress", this.bound_onKeypress, true);
|
||||||
|
|
||||||
this.buildUI();
|
this.buildUI();
|
||||||
this.checkMenus();
|
this.checkMenus();
|
||||||
|
@ -276,7 +276,7 @@ ResponsiveUI.prototype = {
|
||||||
this.stopResizing();
|
this.stopResizing();
|
||||||
|
|
||||||
// Remove listeners.
|
// Remove listeners.
|
||||||
this.mainWindow.document.removeEventListener("keypress", this.bound_onKeypress, false);
|
this.mainWindow.document.removeEventListener("keypress", this.bound_onKeypress, true);
|
||||||
this.menulist.removeEventListener("select", this.bound_presetSelected, true);
|
this.menulist.removeEventListener("select", this.bound_presetSelected, true);
|
||||||
this.tab.removeEventListener("TabClose", this);
|
this.tab.removeEventListener("TabClose", this);
|
||||||
this.tabContainer.removeEventListener("TabSelect", this);
|
this.tabContainer.removeEventListener("TabSelect", this);
|
||||||
|
|
|
@ -17,6 +17,10 @@
|
||||||
|
|
||||||
.devtools-responsiveui-toolbar {
|
.devtools-responsiveui-toolbar {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
/* text color is textColor from dark theme, since no theme is applied to
|
||||||
|
* the responsive toolbar.
|
||||||
|
*/
|
||||||
|
color: hsl(210,30%,85%);
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче