mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 03:55:55 +08:00
Add escape as hotkey to exit full screen
Should be easier to discover. Fixes #5956.
This commit is contained in:
parent
e8c08b77e5
commit
365d725e42
@ -65,6 +65,7 @@ Item
|
|||||||
property alias about: aboutAction;
|
property alias about: aboutAction;
|
||||||
|
|
||||||
property alias toggleFullScreen: toggleFullScreenAction;
|
property alias toggleFullScreen: toggleFullScreenAction;
|
||||||
|
property alias exitFullScreen: exitFullScreenAction
|
||||||
|
|
||||||
property alias configureSettingVisibility: configureSettingVisibilityAction
|
property alias configureSettingVisibility: configureSettingVisibilityAction
|
||||||
|
|
||||||
@ -82,10 +83,18 @@ Item
|
|||||||
|
|
||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id:toggleFullScreenAction
|
id: toggleFullScreenAction
|
||||||
shortcut: StandardKey.FullScreen;
|
shortcut: StandardKey.FullScreen
|
||||||
text: catalog.i18nc("@action:inmenu", "Toggle Full Screen");
|
text: catalog.i18nc("@action:inmenu", "Toggle Full Screen")
|
||||||
iconName: "view-fullscreen";
|
iconName: "view-fullscreen"
|
||||||
|
}
|
||||||
|
|
||||||
|
Action
|
||||||
|
{
|
||||||
|
id: exitFullScreenAction
|
||||||
|
shortcut: StandardKey.Cancel
|
||||||
|
text: catalog.i18nc("@action:inmenu", "Exit Full Screen")
|
||||||
|
iconName: "view-fullscreen"
|
||||||
}
|
}
|
||||||
|
|
||||||
Action
|
Action
|
||||||
|
@ -573,7 +573,13 @@ UM.MainWindow
|
|||||||
Connections
|
Connections
|
||||||
{
|
{
|
||||||
target: Cura.Actions.toggleFullScreen
|
target: Cura.Actions.toggleFullScreen
|
||||||
onTriggered: base.toggleFullscreen();
|
onTriggered: base.toggleFullscreen()
|
||||||
|
}
|
||||||
|
|
||||||
|
Connections
|
||||||
|
{
|
||||||
|
target: Cura.Actions.exitFullScreen
|
||||||
|
onTriggered: base.exitFullscreen()
|
||||||
}
|
}
|
||||||
|
|
||||||
FileDialog
|
FileDialog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user