1
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:
David Rosca 2016-10-25 19:18:14 +02:00
parent b9a7c773f1
commit 7c4345775c

View File

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