1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

Allow closing Download Manager and Browsing Library with CTRL+w

This commit is contained in:
Nobody Really 2014-12-20 15:58:25 +01:00
parent 5cf4d0d6e0
commit 240cecb230
2 changed files with 4 additions and 2 deletions

View File

@ -101,7 +101,8 @@ void DownloadManager::resizeEvent(QResizeEvent* e)
void DownloadManager::keyPressEvent(QKeyEvent* e)
{
if (e->key() == Qt::Key_Escape) {
if (e->key() == Qt::Key_Escape
|| (e->key() == Qt::Key_W && e->modifiers() == Qt::ControlModifier)) {
close();
}

View File

@ -163,7 +163,8 @@ void BrowsingLibrary::closeEvent(QCloseEvent* e)
void BrowsingLibrary::keyPressEvent(QKeyEvent* e)
{
if (e->key() == Qt::Key_Escape) {
if (e->key() == Qt::Key_Escape
|| (e->key() == Qt::Key_W && e->modifiers() == Qt::ControlModifier)) {
close();
}