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:
parent
3e0b62b109
commit
f65d9b6231
1 changed files with 5 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue