fix leave calls window fullscreen when escape pressed #LINQT-2301 #LINQT-2321

This commit is contained in:
Gaelle Braud 2026-01-12 11:00:21 +01:00
parent 389fae13d8
commit 0799fe975a

View file

@ -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)