Merge pull request #1562 from oshi-shinobu/master

Allow closing Download Manager and Browsing Library with CTRL+w
remotes/origin/falkon
David Rosca 11 years ago
commit 57a9286c05
  1. 3
      src/lib/downloads/downloadmanager.cpp
  2. 3
      src/lib/other/browsinglibrary.cpp

@ -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();
}

@ -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();
}

Loading…
Cancel
Save