projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c31547
)
removed leaving screens with "Escape" key if gadgets are active
author
Holger Schemel
<info@artsoft.org>
Fri, 16 Nov 2018 20:22:29 +0000
(21:22 +0100)
committer
Holger Schemel
<info@artsoft.org>
Fri, 16 Nov 2018 20:25:04 +0000
(21:25 +0100)
src/events.c
patch
|
blob
|
history
diff --git
a/src/events.c
b/src/events.c
index 7e1f293f9b067cf5792ac4385f1e24a708a3e8b4..0c5b2bc1354f5ad40477daa9ed5ccde37b3ff689 100644
(file)
--- 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)
{