Add escape as hotkey to exit full screen

Should be easier to discover.

Fixes #5956.
This commit is contained in:
Ghostkeeper 2019-07-03 10:32:00 +02:00
parent e8c08b77e5
commit 365d725e42
No known key found for this signature in database
GPG Key ID: 86BEF881AE2CF276
2 changed files with 20 additions and 5 deletions

View File

@ -65,6 +65,7 @@ Item
property alias about: aboutAction;
property alias toggleFullScreen: toggleFullScreenAction;
property alias exitFullScreen: exitFullScreenAction
property alias configureSettingVisibility: configureSettingVisibilityAction
@ -82,10 +83,18 @@ Item
Action
{
id:toggleFullScreenAction
shortcut: StandardKey.FullScreen;
text: catalog.i18nc("@action:inmenu", "Toggle Full Screen");
iconName: "view-fullscreen";
id: toggleFullScreenAction
shortcut: StandardKey.FullScreen
text: catalog.i18nc("@action:inmenu", "Toggle Full Screen")
iconName: "view-fullscreen"
}
Action
{
id: exitFullScreenAction
shortcut: StandardKey.Cancel
text: catalog.i18nc("@action:inmenu", "Exit Full Screen")
iconName: "view-fullscreen"
}
Action

View File

@ -573,7 +573,13 @@ UM.MainWindow
Connections
{
target: Cura.Actions.toggleFullScreen
onTriggered: base.toggleFullscreen();
onTriggered: base.toggleFullscreen()
}
Connections
{
target: Cura.Actions.exitFullScreen
onTriggered: base.exitFullscreen()
}
FileDialog