X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fevents.c;h=470271cbefe3a68b6de54c4fc79d1a6d9b23cc6c;hb=2d57e3c2b6241f64246029e78b4b004b4a0ebf2f;hp=7da6e5536c058fb79e9598f4a8a95e10de3cee7c;hpb=4c23826c2c9f8f6c7d1fec69769ba0d7254c9a7c;p=rocksndiamonds.git diff --git a/src/events.c b/src/events.c index 7da6e553..470271cb 100644 --- a/src/events.c +++ b/src/events.c @@ -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: