From 99328c2f2008c4f937e56f13bf711e9cacae2c64 Mon Sep 17 00:00:00 2001 From: Edvin Dulko Date: Thu, 5 Oct 2023 17:33:00 +0200 Subject: [PATCH] replace Ctrl+F by F for full screen --- Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp index 779fe16d7e705..aa345ae963cb0 100644 --- a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp +++ b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp @@ -5078,7 +5078,7 @@ void OverlayWidget::handleKeyPress(not_null e) { return; } } else if (_streamed) { - // Ctrl + F for full screen toggle is in eventFilter(). + // F for full screen toggle is in eventFilter(). const auto toggleFull = (modifiers.testFlag(Qt::AltModifier) || ctrl) && (key == Qt::Key_Enter || key == Qt::Key_Return); if (toggleFull) { @@ -6006,7 +6006,7 @@ bool OverlayWidget::filterApplicationEvent( const auto event = static_cast(e.get()); const auto key = event->key(); const auto ctrl = event->modifiers().testFlag(Qt::ControlModifier); - if (key == Qt::Key_F && ctrl && _streamed) { + if (key == Qt::Key_F && _streamed) { playbackToggleFullScreen(); return true; } else if (key == Qt::Key_0 && ctrl) {