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:
commit
57a9286c05
@ -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…
Reference in New Issue
Block a user