fix copy&paste, jquery always sets event.metaKey to event.ctrlKey
This commit is contained in:
parent
6ec375c9ce
commit
f366baa508
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@
|
||||||
|
|
||||||
Ox.forEach(Ox.MODIFIER_KEYS, function(v, k) {
|
Ox.forEach(Ox.MODIFIER_KEYS, function(v, k) {
|
||||||
// avoid pushing modifier twice
|
// avoid pushing modifier twice
|
||||||
if (event[k] && keyBasename != v) {
|
// using event.originalEvent since jquery always sets event.metaKey to event.ctrlKey
|
||||||
|
if (event.originalEvent[k] && keyBasename != v) {
|
||||||
keyNames.splice(-1, 0, v);
|
keyNames.splice(-1, 0, v);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue