Use control on non-mac platforms

This commit is contained in:
Kevin Sawicki 2016-05-17 15:01:32 -07:00
parent 7db2601ea8
commit 0b4b79d0a4

View file

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