From: Kevin Sawicki Date: Tue, 17 May 2016 22:01:32 +0000 (-0700) Subject: Use control on non-mac platforms X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b4b79d0a4192e1b828b4620a6aa8a5a2ca02ab6;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Use control on non-mac platforms --- diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index 6178d76..bd4e6ea 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -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) }