2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Close streamed video on Escape.

This commit is contained in:
John Preston
2019-06-05 17:54:12 +03:00
parent 65b949d36b
commit e53f4a5450

View File

@@ -2957,7 +2957,7 @@ void OverlayWidget::keyPressEvent(QKeyEvent *e) {
}
}
if (!_menu && e->key() == Qt::Key_Escape) {
if (_doc && _doc->loading()) {
if (_doc && _doc->loading() && !_streamed) {
onDocClick();
} else {
close();