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

Merge pull request #1562 from oshi-shinobu/master

Allow closing Download Manager and Browsing Library with CTRL+w
This commit is contained in:
David Rosca 2014-12-22 10:09:52 +01:00
commit 57a9286c05
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();
}