Fixed IE related hot keys problemwith AltTab.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 11 Feb 2010 20:48:50 +0000 (20:48 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 11 Feb 2010 20:48:50 +0000 (20:48 +0000)
js/inserts.js

index e2d7cac8f8c9ee5f9f6c33b2b716c3cc2ae4da08..4948a5cc3092d3385928d008a6ed22a6067dd2fb 100644 (file)
@@ -357,7 +357,7 @@ function setHotKeys() {
                        _hotkeys.focus = -1;
                        return stopEv(ev);
                }
-               else if (_hotkeys.alt && ((key>47 && key<58) || (key>64 && key<91))) {
+               else if (ev.altKey && !ev.ctrlKey && ((key>47 && key<58) || (key>64 && key<91))) {
                        var n = _hotkeys.focus;
                        var l = document.links;
                        var cnt = l.length;
@@ -375,7 +375,7 @@ function setHotKeys() {
                        }
                        return stopEv(ev);
                }
-               if((ev.ctrlKey && key == 13) || key == 27) {
+               if((ev.ctrlKey && key == 13) || (key == 27 && ev.altKey)) {
                        _hotkeys.alt = false; // cancel link selection
                        _hotkeys.focus = -1;
                        ev.cancelBubble = true;