Browse Source

spacebar bug fixed

Michael 10 years ago
parent
commit
b4c88dea09
2 changed files with 6 additions and 4 deletions
  1. 2 4
      glueIt
  2. 4 0
      src/allplatforms/classes/Keyboard.js

+ 2 - 4
glueIt

@@ -32,8 +32,7 @@ case "$1" in
         echo "Testing Firefox add-on..."
         echo "Testing Firefox add-on..."
         cd ./tools/firefox-addon-sdk-1.16
         cd ./tools/firefox-addon-sdk-1.16
         source bin/activate
         source bin/activate
-        cd ../..
-        cd ./build/firefox
+        cd ../../build/firefox
         cfx run
         cfx run
         cd ../..
         cd ../..
         ;;
         ;;
@@ -43,8 +42,7 @@ case "$1" in
         echo "Packaging Firefox add-on..."
         echo "Packaging Firefox add-on..."
         cd ./tools/firefox-addon-sdk-1.16
         cd ./tools/firefox-addon-sdk-1.16
         source bin/activate
         source bin/activate
-        cd ../..
-        cd ./build/firefox
+        cd ../../build/firefox
         cfx xpi
         cfx xpi
         cd ../..
         cd ../..
         ;;
         ;;

+ 4 - 0
src/allplatforms/classes/Keyboard.js

@@ -51,6 +51,8 @@ SC.loadPackage({ 'Keyboard': {
                             myDocument.set({ showOutlines: !myDocument.get('showOutlines') });
                             myDocument.set({ showOutlines: !myDocument.get('showOutlines') });
                             spaceBarDown = true;
                             spaceBarDown = true;
                         }
                         }
+                        evt.stopPropagation();
+                        evt.preventDefault();
 
 
                     }
                     }
 
 
@@ -73,6 +75,8 @@ SC.loadPackage({ 'Keyboard': {
                             myDocument.set({ showOutlines: !myDocument.get('showOutlines') });
                             myDocument.set({ showOutlines: !myDocument.get('showOutlines') });
                             spaceBarDown = false;
                             spaceBarDown = false;
                         }
                         }
+                        evt.stopPropagation();
+                        evt.preventDefault();
 
 
                     }
                     }