Simulate the toggleDevTools API.

Currently there is no way to know the devtools's state in brightray, so
we have to record the state manually, fix this after patching brightray.
This commit is contained in:
Cheng Zhao 2013-05-17 16:09:12 +08:00
parent 61bca04dfd
commit 1fea283d91
2 changed files with 13 additions and 3 deletions

View file

@ -74,9 +74,9 @@ delegate.browserMainParts.preMainMessageLoopRun = function() {
click: function() { BrowserWindow.getFocusedWindow().reloadIgnoringCache(); }
},
{
label: 'Show DevTools',
label: 'Toggle DevTools',
accelerator: 'Alt+Command+I',
click: function() { BrowserWindow.getFocusedWindow().openDevTools(); }
click: function() { BrowserWindow.getFocusedWindow().toggleDevTools(); }
},
]
},