don't do javascript key shortcuts when modifiers are pressed
authorgc <gc>
Mon, 30 Jan 2006 21:41:07 +0000 (21:41 +0000)
committergc <gc>
Mon, 30 Jan 2006 21:41:07 +0000 (21:41 +0000)
lib/booh/html-merges.rb

index c1d954f..494d910 100644 (file)
@@ -354,6 +354,9 @@ function keyDownEvent(key) {
         key = event;
         key.which = key.keyCode;
     }
+    if (key.altKey || key.ctrlKey || key.shiftKey) {
+        return;
+    }
     switch (key.which) {
       case 36: // home
         first();