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)