mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
WebView: Add Ctrl+M shortcut to toggle mute
This commit is contained in:
parent
b9a7c773f1
commit
7c4345775c
|
@ -1079,6 +1079,13 @@ void WebView::_keyPressEvent(QKeyEvent *event)
|
|||
}
|
||||
break;
|
||||
|
||||
case Qt::Key_M:
|
||||
if (event->modifiers() & Qt::ControlModifier) {
|
||||
page()->setAudioMuted(!page()->isAudioMuted());
|
||||
event->accept();
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user