fix leave calls window fullscreen when escape pressed #LINQT-2301 #LINQT-2321
This commit is contained in:
parent
389fae13d8
commit
0799fe975a
1 changed files with 2 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue