rnd-20000927-1-src
[rocksndiamonds.git] / src / events.c
index 7da6e5536c058fb79e9598f4a8a95e10de3cee7c..470271cbefe3a68b6de54c4fc79d1a6d9b23cc6c 100644 (file)
@@ -426,6 +426,7 @@ void HandleButton(int mx, int my, int button)
 void HandleKey(Key key, int key_status)
 {
   int joy = 0;
+  boolean anyTextGadgetActiveOrJustFinished = anyTextGadgetActive();
   static struct SetupKeyboardInfo custom_key;
   static struct
   {
@@ -589,7 +590,8 @@ void HandleKey(Key key, int key_status)
       break;
 
     case LEVELED:
-      HandleLevelEditorKeyInput(key);
+      if (!anyTextGadgetActiveOrJustFinished)
+       HandleLevelEditorKeyInput(key);
       break;
 
     case PLAYING: