summaryrefslogtreecommitdiff
path: root/hud
diff options
authorBrandon Schaefer <brandontschaefer@gmail.com>2012-06-29 16:17:10 -0700
committerBrandon Schaefer <brandontschaefer@gmail.com>2012-06-29 16:17:10 -0700
commitdbe8d5e2d849a7b00adfa4d3cabb86eeaa48c215 (patch)
treeeed54fff45e6b8d9d30ff9d12803fca8b6898e1d /hud
parentbbf067650a9c18fcee5265fa7d53f5d9a2cd2757 (diff)
* Alt+F4 closes the hud
(bzr r2455.2.1)
Diffstat (limited to 'hud')
-rw-r--r--hud/HudView.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/hud/HudView.cpp b/hud/HudView.cpp
index 150492452..28dc3fb48 100644
--- a/hud/HudView.cpp
+++ b/hud/HudView.cpp
@@ -589,6 +589,12 @@ nux::Area* View::FindKeyFocusArea(unsigned int event_type,
// Not sure if Enter should be a navigation key
direction = nux::KEY_NAV_ENTER;
break;
+ case NUX_VK_F4:
+ if (special_keys_state & NUX_STATE_ALT)
+ {
+ ubus.SendMessage(UBUS_HUD_CLOSE_REQUEST);
+ }
+ break;
default:
direction = nux::KEY_NAV_NONE;
break;