Use control on non-mac platforms
This commit is contained in:
parent
7db2601ea8
commit
0b4b79d0a4
1 changed files with 5 additions and 1 deletions
|
@ -836,7 +836,11 @@ describe('browser-window module', function () {
|
|||
w.webContents.on('devtools-opened', () => {
|
||||
var inputEventIntervalId = setInterval(function () {
|
||||
if (w && w.devToolsWebContents) {
|
||||
w.devToolsWebContents.sendInputEvent({type: 'keyDown', keyCode:'[', modifiers: ['meta']})
|
||||
w.devToolsWebContents.sendInputEvent({
|
||||
type: 'keyDown',
|
||||
keyCode:'[',
|
||||
modifiers: process.platform === 'darwin' ? ['meta'] : ['control']
|
||||
})
|
||||
} else {
|
||||
clearInterval(inputEventIntervalId)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue