From 03b67a512ec9ef1cf5c337aa5c47a5a76d4a8a61 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 2 May 2024 16:15:31 +0200 Subject: editor: show actual keycode in unhandled key message Note that `SDL_GetModState()` is a trivial accessor. --- editor/imgui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editor/imgui.cpp') diff --git a/editor/imgui.cpp b/editor/imgui.cpp index 9f43eda1..f35f6329 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -58,11 +58,11 @@ float app::draw_main_menu() ImGui::Separator(); ImGui::MenuItem("Quit", "Ctrl+Q", &do_quit); if (do_new) - do_key(key_new_file, kmod_none); + do_key(key_new_file); else if (do_quickload) - do_key(key_quickload, kmod_none); + do_key(key_quickload); else if (do_quit) - do_key(key_quit, kmod_none); + do_key(key_quit); } if (auto b = begin_menu("Editor")) { -- cgit v1.2.3