Fixed bug 0004121 Fixed conflict with shift ctrl alt keys and onchange event in combos in Linux
authorDavid Baz Fayos <david.baz@openbravo.com>
Mon, 30 Jun 2008 13:36:16 +0000
changeset 1386 87e3f24d5560
parent 1385 cb507d2cc2f8
child 1387 aef6a6d38627
Fixed bug 0004121 Fixed conflict with shift ctrl alt keys and onchange event in combos in Linux
web/js/utils.js
--- a/web/js/utils.js	Mon Jun 30 13:20:11 2008 +0000
+++ b/web/js/utils.js	Mon Jun 30 13:36:16 2008 +0000
@@ -1198,7 +1198,7 @@
   } else {
     return false;
   }
-  if (isKeyboardLocked==false && thereIsShortcut==false && !isCtrlPressed && !isAltPressed && pushedKey.type=='keydown') {
+  if (isKeyboardLocked==false && thereIsShortcut==false && !isCtrlPressed && !isAltPressed && pushedKey.type=='keydown' && pressedKeyCode!='16' && pressedKeyCode!='17' && pressedKeyCode!='18') {
     if (focusedWindowElement.tagName == 'SELECT') {
       if (focusedWindowElement.getAttribute('onchange') && navigator.userAgent.toUpperCase().indexOf("MSIE") == -1) setTimeout("focusedWindowElement.onchange();",50);
     }