From 0799fe975a25e141abdb68976e0af8827a78a90f Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Mon, 12 Jan 2026 11:00:21 +0100 Subject: [PATCH] fix leave calls window fullscreen when escape pressed #LINQT-2301 #LINQT-2321 --- Linphone/view/Page/Window/Call/CallsWindow.qml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Linphone/view/Page/Window/Call/CallsWindow.qml b/Linphone/view/Page/Window/Call/CallsWindow.qml index f73ef677..e69a5da7 100644 --- a/Linphone/view/Page/Window/Call/CallsWindow.qml +++ b/Linphone/view/Page/Window/Call/CallsWindow.qml @@ -108,6 +108,8 @@ AbstractWindow { if (rightPanel.contentLoader.item && rightPanel.contentLoader.item.objectName === "dialerPanel"){ mainWindow.keyPressedOnDialer(event) } + if ((event.key === Qt.Key_Escape || event.key === Qt.Key_Return) && mainWindow.visibility == Window.FullScreen) + mainWindow.showNormal() } } @@ -333,11 +335,6 @@ AbstractWindow { color: DefaultStyle.grey_900 focus: true - Keys.onPressed: (event) => { - if ((event.key === Qt.Key_Escape || event.key === Qt.Key_Return) && mainWindow.visibility == Window.FullScreen) - mainWindow.showNormal() - } - ColumnLayout { anchors.fill: parent anchors.bottomMargin: Utils.getSizeWithScreenRatio(10)