mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Setting UI improvement
* pressing shift while clicking the button shows overview * hint in overview, that there are shortcuts
This commit is contained in:
@@ -321,13 +321,7 @@ namespace BlackGui
|
||||
|
||||
void CDockWidget::keyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
if (event->key() == Qt::Key_Escape)
|
||||
{
|
||||
if (this->isFloating())
|
||||
{
|
||||
this->toggleFloating();
|
||||
}
|
||||
}
|
||||
if (event->key() == Qt::Key_Escape && this->isFloating()) { this->toggleFloating(); }
|
||||
QDockWidget::keyPressEvent(event);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user