Bug 942946 - ESC closes Responsive Design Mode while opening Web Console split view. r=paul

This commit is contained in:
Brian Grinstead 2013-11-25 13:25:25 -06:00
Родитель 156d36df5b
Коммит 9115c8772b
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -176,7 +176,7 @@ function ResponsiveUI(aWindow, aTab)
// Events
this.tab.addEventListener("TabClose", 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.checkMenus();
@ -276,7 +276,7 @@ ResponsiveUI.prototype = {
this.stopResizing();
// 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.tab.removeEventListener("TabClose", this);
this.tabContainer.removeEventListener("TabSelect", this);

Просмотреть файл

@ -17,6 +17,10 @@
.devtools-responsiveui-toolbar {
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;
padding: 0;
box-shadow: none;