summaryrefslogtreecommitdiff
path: root/plugins/unityshell
diff options
authorBrandon Schaefer <brandontschaefer@gmail.com>2013-09-10 16:11:32 -0700
committerBrandon Schaefer <brandontschaefer@gmail.com>2013-09-10 16:11:32 -0700
commitda21bc141a7294aa6360eb5a071a72b5b44c5d7d (patch)
tree8e306381fc32b5c649bc4aad85d4bd8bd125c859 /plugins/unityshell
parent8ae20e7719e81c6e98dd79d047452661e030a124 (diff)
* If a button/key is pressed and the shortcut hint is open close it!
(bzr r3494.4.1)
Diffstat (limited to 'plugins/unityshell')
-rw-r--r--plugins/unityshell/src/unityshell.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index 4699b472a..d739f9dec 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -1519,6 +1519,11 @@ void UnityScreen::handleEvent(XEvent* event)
}
break;
case ButtonPress:
+ if (shortcut_controller_->Visible())
+ {
+ shortcut_controller_->Hide();
+ }
+
if (super_keypressed_)
{
launcher_controller_->KeyNavTerminate(false);
@@ -1609,6 +1614,11 @@ void UnityScreen::handleEvent(XEvent* event)
break;
case KeyPress:
{
+ if (shortcut_controller_->Visible())
+ {
+ shortcut_controller_->Hide();
+ }
+
if (super_keypressed_)
{
/* We need an idle to postpone this action, after the current event