From 7ad85610661093395dac29a21ee9ecd209812b9c Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Fri, 28 Jun 2019 13:09:08 +0300 Subject: [PATCH] Make H hide windows --- applications/gui/src/screen.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/applications/gui/src/screen.cpp b/applications/gui/src/screen.cpp index 4175e5084..63965a3fc 100644 --- a/applications/gui/src/screen.cpp +++ b/applications/gui/src/screen.cpp @@ -258,6 +258,9 @@ bool ftl::gui::Screen::keyboardEvent(int key, int scancode, int action, int modi if (key >= 262 && key <= 267) { if (camera_) camera_->keyMovement(key, modifiers); return true; + } else if (action == 1 && key == 'H') { + swindow_->setVisible(false); + cwindow_->setVisible(false); } else if (action == 1 && key == 32) { ctrl_->pause(); return true; -- GitLab