Menu

#21 hotkey should hide launchy if it isn't active

open
nobody
None
5
2009-04-27
2009-04-27
Anonymous
No

Sometimes the focus change is not noticed and pressing the hotkey hides launchy although it isn't active.
This fixes the latter:

void MyWidget::onHotKey() {
if (menuOpen || optionsOpen) {
showLaunchy();
return;
}
if (isVisible() && QApplication::activeWindow () !=0) {
hideLaunchy();
}
else {
showLaunchy();
}
}

Discussion


Log in to post a comment.