From f366baa5083eef1e9ed91992134e0451e8e6fb11 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 4 Jun 2011 14:14:39 +0200 Subject: [PATCH] fix copy&paste, jquery always sets event.metaKey to event.ctrlKey --- source/Ox.UI/js/Core/Ox.Keyboard.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Core/Ox.Keyboard.js b/source/Ox.UI/js/Core/Ox.Keyboard.js index 28654fef..ce95fa45 100644 --- a/source/Ox.UI/js/Core/Ox.Keyboard.js +++ b/source/Ox.UI/js/Core/Ox.Keyboard.js @@ -53,7 +53,8 @@ Ox.forEach(Ox.MODIFIER_KEYS, function(v, k) { // 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); } });