Show the shortcut key (J) for Merge Ways text in the toolbox.
[potlatch2.git] / net / systemeD / potlatch2 / controller / DrawQuadrilateral.as
index a7dc400..cc7085e 100644 (file)
@@ -1,6 +1,7 @@
 package net.systemeD.potlatch2.controller {
        import flash.events.*;
        import flash.display.Stage;
+       import flash.ui.Keyboard;
     import net.systemeD.halcyon.connection.*;
     import net.systemeD.halcyon.Map;
        import net.systemeD.potlatch2.tools.Parallelise;
@@ -44,7 +45,7 @@ package net.systemeD.potlatch2.controller {
         }
 
                override public function processKeyboardEvent(event:KeyboardEvent):ControllerState {
-                       if (event.keyCode==27) {                        // Escape
+                       if (event.keyCode==Keyboard.ESCAPE) {
                                // make sure the rectangle sprite is cleared
                                return new NoSelection();
                        }