Skip to content
Snippets Groups Projects
Commit 7ad85610 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Make H hide windows

parent 9f6edbd4
No related branches found
No related tags found
No related merge requests found
Pipeline #11923 passed
...@@ -258,6 +258,9 @@ bool ftl::gui::Screen::keyboardEvent(int key, int scancode, int action, int modi ...@@ -258,6 +258,9 @@ bool ftl::gui::Screen::keyboardEvent(int key, int scancode, int action, int modi
if (key >= 262 && key <= 267) { if (key >= 262 && key <= 267) {
if (camera_) camera_->keyMovement(key, modifiers); if (camera_) camera_->keyMovement(key, modifiers);
return true; return true;
} else if (action == 1 && key == 'H') {
swindow_->setVisible(false);
cwindow_->setVisible(false);
} else if (action == 1 && key == 32) { } else if (action == 1 && key == 32) {
ctrl_->pause(); ctrl_->pause();
return true; return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment