projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7db2601
)
Use control on non-mac platforms
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Tue, 17 May 2016 22:01:32 +0000
(15:01 -0700)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Tue, 17 May 2016 22:01:32 +0000
(15:01 -0700)
spec/api-browser-window-spec.js
patch
|
blob
|
history
diff --git
a/spec/api-browser-window-spec.js
b/spec/api-browser-window-spec.js
index
6178d76
..
bd4e6ea
100644
(file)
--- 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)
}