Use control on non-mac platforms
authorKevin Sawicki <kevinsawicki@gmail.com>
Tue, 17 May 2016 22:01:32 +0000 (15:01 -0700)
committerKevin Sawicki <kevinsawicki@gmail.com>
Tue, 17 May 2016 22:01:32 +0000 (15:01 -0700)
spec/api-browser-window-spec.js

index 6178d76..bd4e6ea 100644 (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)
             }