1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2026-02-08 00:32:27 +00:00

Fix shortcuts on macOS.

This commit is contained in:
Filippo Scognamiglio
2026-01-22 01:20:06 +01:00
parent 29dc67d96b
commit b77a1b5962
5 changed files with 26 additions and 144 deletions

View File

@@ -22,46 +22,32 @@ import QtQuick.Controls 2.3
MenuBar {
id: defaultMenuBar
visible: appSettings.showMenubar
visible: appSettings.isMacOS || appSettings.showMenubar
Menu {
title: qsTr("File")
MenuItem {
action: newWindowAction
}
MenuItem {
action: newTabAction
}
MenuSeparator {}
MenuItem {
action: quitAction
}
MenuItem { action: newWindowAction }
MenuItem { action: newTabAction }
MenuSeparator { }
MenuItem { action: quitAction }
}
Menu {
title: qsTr("Edit")
MenuItem {
action: copyAction
}
MenuItem {
action: pasteAction
}
MenuItem { action: copyAction }
MenuItem { action: pasteAction }
MenuSeparator {}
MenuItem {
action: showsettingsAction
}
MenuItem { action: showsettingsAction }
}
Menu {
title: qsTr("View")
MenuItem {
action: fullscreenAction
visible: fullscreenAction.enabled
}
MenuItem {
action: zoomIn
}
MenuItem {
action: zoomOut
Instantiator {
model: !appSettings.isMacOS ? 1 : 0
delegate: MenuItem { action: fullscreenAction }
onObjectAdded: (index, object) => menu.insertItem(index, object)
onObjectRemoved: (index, object) => menu.removeItem(object)
}
MenuItem { action: zoomIn }
MenuItem { action: zoomOut }
}
Menu {
id: profilesMenu