From f65d9b6231c7444ab7226b00f6a677f5907df552 Mon Sep 17 00:00:00 2001 From: Jeena Date: Fri, 12 Jun 2020 23:51:38 +0200 Subject: [PATCH] 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. --- qml/TheMenuBar.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qml/TheMenuBar.qml b/qml/TheMenuBar.qml index 94a07dc..34c0310 100644 --- a/qml/TheMenuBar.qml +++ b/qml/TheMenuBar.qml @@ -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"