aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 7a10b20..1043ae9 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -691,10 +691,9 @@ bool InputSystem::receive(const MainSDLEvent& event)
case SDL_KEYUP:
ev.emit<KeyUpEvent>(SDL_KEY);
- if (SDL_KEY == SDLK_ESCAPE)
+ if (SDL_KEY == SDLK_ESCAPE) {
ui::menu::toggle();
-
- if (SDL_KEY == SDLK_h) {
+ } else if (SDL_KEY == SDLK_h) {
quest::toggle();
} else switch (SDL_KEY) {
case SDLK_F3: