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
parent 12c7db7f52
commit 052cc38003
2 changed files with 6 additions and 2 deletions

View File

@ -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);

View File

@ -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;