feat: add Alt key to close ImGui; clarify debug log

This commit is contained in:
2026-07-17 17:59:31 +08:00
parent 106cc84e62
commit d989de2816
2 changed files with 3 additions and 2 deletions

View File

@@ -652,7 +652,8 @@ void App::handle_sdl_event(SDL_Event& e) {
m_running = false;
break;
case SDL_EVENT_KEY_DOWN:
if (imgui_enable && e.key.key == SDLK_ESCAPE) {
if (imgui_enable &&
(e.key.key == SDLK_ESCAPE || e.key.key == SDLK_LALT)) {
m_window.disable_mouse();
m_window.set_imgui_enabled(false);
}

View File

@@ -69,7 +69,7 @@ void DebugCollector::init(int width, int height) {
os_text.set_scale(SCALE);
if (Tools::get_os_version(os)) {
os_text.set_text("OS: " + os);
Logger::info("System: {}", os);
Logger::info("OS System: {}", os);
} else {
os_text.set_text("OS: Unknown");
}