Skip to content
Snippets Groups Projects
Commit 5c1c4ce7 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

calls: make Esc leave fullscreen mode

This removes the escape to leave account creation feature.

Change-Id: Ie83e4b65a7d127a04ed49561cd19bfd12321a5fb
parent 4b91f080
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment