mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 12:03:18 +02:00
calls: make Esc leave fullscreen mode
This removes the escape to leave account creation feature. Change-Id: Ie83e4b65a7d127a04ed49561cd19bfd12321a5fb
This commit is contained in:
parent
4b91f08023
commit
5c1c4ce709
2 changed files with 11 additions and 7 deletions
|
@ -616,6 +616,8 @@ Rectangle {
|
|||
sequence: "F11"
|
||||
context: Qt.ApplicationShortcut
|
||||
onActivated: {
|
||||
if (JamiQmlUtils.callIsFullscreen)
|
||||
return
|
||||
if (containerWindow.visibility !== Window.FullScreen)
|
||||
containerWindow.visibility = Window.FullScreen
|
||||
else
|
||||
|
@ -645,6 +647,15 @@ Rectangle {
|
|||
onActivated: startWizard()
|
||||
}
|
||||
|
||||
Shortcut {
|
||||
sequence: "Escape"
|
||||
context: Qt.ApplicationShortcut
|
||||
onActivated: {
|
||||
if (JamiQmlUtils.callIsFullscreen)
|
||||
callStackView.toggleFullScreen()
|
||||
}
|
||||
}
|
||||
|
||||
KeyBoardShortcutTable {
|
||||
id: shortcutsTable
|
||||
}
|
||||
|
|
|
@ -59,13 +59,6 @@ Rectangle {
|
|||
|
||||
color: JamiTheme.backgroundColor
|
||||
|
||||
Shortcut {
|
||||
context: Qt.ApplicationShortcut
|
||||
sequence: "Esc"
|
||||
enabled: !root.activeFocus
|
||||
onActivated: leavePage()
|
||||
}
|
||||
|
||||
onVisibleChanged: {
|
||||
if (visible && createAccountStack.currentIndex === 0)
|
||||
usernameEdit.focus = true
|
||||
|
|
Loading…
Add table
Reference in a new issue