mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Allow closing Download Manager and Browsing Library with CTRL+w
This commit is contained in:
parent
5cf4d0d6e0
commit
240cecb230
@ -101,7 +101,8 @@ void DownloadManager::resizeEvent(QResizeEvent* e)
|
|||||||
|
|
||||||
void DownloadManager::keyPressEvent(QKeyEvent* 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();
|
close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,7 +163,8 @@ void BrowsingLibrary::closeEvent(QCloseEvent* e)
|
|||||||
|
|
||||||
void BrowsingLibrary::keyPressEvent(QKeyEvent* 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();
|
close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user