From: Holger Schemel Date: Fri, 16 Nov 2018 20:22:29 +0000 (+0100) Subject: removed leaving screens with "Escape" key if gadgets are active X-Git-Tag: 4.1.2.0~96 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=318d83c9ab7873462cf6f1af0fa218070ffce707;p=rocksndiamonds.git removed leaving screens with "Escape" key if gadgets are active --- diff --git a/src/events.c b/src/events.c index 7e1f293f..0c5b2bc1 100644 --- a/src/events.c +++ b/src/events.c @@ -2081,10 +2081,7 @@ void HandleKey(Key key, int key_status) HandleKeysSpecial(key); if (HandleGadgetsKeyInput(key)) - { - if (key != KSYM_Escape) // always allow ESC key to be handled - key = KSYM_UNDEFINED; - } + return; // do not handle already processed keys again switch (game_status) {