mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
Adds other keycodes for command keys in different browsers.
- 224 for firefox - 93 for the right command key in WebKit browsers.
This commit is contained in:
parent
ae116cd043
commit
7ebd4a17bd
1 changed files with 3 additions and 1 deletions
|
@ -40,7 +40,9 @@ var Key = this.Key = new function() {
|
||||||
39: 'right',
|
39: 'right',
|
||||||
40: 'down',
|
40: 'down',
|
||||||
46: 'delete',
|
46: 'delete',
|
||||||
91: 'command'
|
91: 'command',
|
||||||
|
93: 'command', // WebKit right command button
|
||||||
|
224: 'command' // Gecko command button
|
||||||
},
|
},
|
||||||
|
|
||||||
// Use Base.merge to convert into a Base object, for #toString()
|
// Use Base.merge to convert into a Base object, for #toString()
|
||||||
|
|
Loading…
Reference in a new issue