mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +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;
|
break;
|
||||||
|
|
||||||
|
case Qt::Key_M:
|
||||||
|
if (event->modifiers() & Qt::ControlModifier) {
|
||||||
|
page()->setAudioMuted(!page()->isAudioMuted());
|
||||||
|
event->accept();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user