fix copy&paste, jquery always sets event.metaKey to event.ctrlKey

This commit is contained in:
j 2011-06-04 14:14:39 +02:00
parent 6ec375c9ce
commit f366baa508

View file

@ -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);
} }
}); });