Make Ctrl+W close the application

Many other applications have a Ctrl+W to close a window, adding this
as a second option to close the application because it only has one
window.
This commit is contained in:
Jeena 2020-06-12 23:51:38 +02:00
parent 3e0b62b109
commit f65d9b6231

View file

@ -35,6 +35,11 @@ MenuBar {
Menu {
visible: menuBar.visible
title: qsTr("File")
MenuItem {
text: qsTr("Close &Window")
shortcut: "Ctrl+W"
onTriggered: Qt.quit()
}
MenuItem {
text: qsTr("Exit")
shortcut: "Ctrl+Q"