macOS: Some menu item titles are automatically inferred
This commit is contained in:
parent
e7512edfad
commit
3a1208836c
|
@ -314,8 +314,6 @@
|
||||||
"macMenuCloseWindow" = "Close Window";
|
"macMenuCloseWindow" = "Close Window";
|
||||||
|
|
||||||
"macMenuEdit" = "Edit";
|
"macMenuEdit" = "Edit";
|
||||||
"macMenuUndo" = "Undo";
|
|
||||||
"macMenuRedo" = "Redo";
|
|
||||||
"macMenuCut" = "Cut";
|
"macMenuCut" = "Cut";
|
||||||
"macMenuCopy" = "Copy";
|
"macMenuCopy" = "Copy";
|
||||||
"macMenuPaste" = "Paste";
|
"macMenuPaste" = "Paste";
|
||||||
|
@ -329,7 +327,6 @@
|
||||||
"macMenuWindow" = "Window";
|
"macMenuWindow" = "Window";
|
||||||
"macMenuMinimize" = "Minimize";
|
"macMenuMinimize" = "Minimize";
|
||||||
"macMenuZoom" = "Zoom";
|
"macMenuZoom" = "Zoom";
|
||||||
"macMenuFullScreen" = "Full Screen";
|
|
||||||
|
|
||||||
// Mac manage tunnels window
|
// Mac manage tunnels window
|
||||||
|
|
||||||
|
|
|
@ -80,8 +80,8 @@ class MainMenu: NSMenu {
|
||||||
private func createEditMenu() -> NSMenu {
|
private func createEditMenu() -> NSMenu {
|
||||||
let menu = NSMenu(title: tr("macMenuEdit"))
|
let menu = NSMenu(title: tr("macMenuEdit"))
|
||||||
|
|
||||||
menu.addItem(withTitle: tr("macMenuUndo"), action: #selector(UndoActionRespondable.undo(_:)), keyEquivalent:"z")
|
menu.addItem(withTitle: "", action: #selector(UndoActionRespondable.undo(_:)), keyEquivalent:"z")
|
||||||
menu.addItem(withTitle: tr("macMenuRedo"), action: #selector(UndoActionRespondable.redo(_:)), keyEquivalent:"Z")
|
menu.addItem(withTitle: "", action: #selector(UndoActionRespondable.redo(_:)), keyEquivalent:"Z")
|
||||||
|
|
||||||
menu.addItem(NSMenuItem.separator())
|
menu.addItem(NSMenuItem.separator())
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ class MainMenu: NSMenu {
|
||||||
|
|
||||||
menu.addItem(NSMenuItem.separator())
|
menu.addItem(NSMenuItem.separator())
|
||||||
|
|
||||||
let fullScreenMenuItem = menu.addItem(withTitle: tr("macMenuFullScreen"), action: #selector(NSWindow.toggleFullScreen(_:)), keyEquivalent:"f")
|
let fullScreenMenuItem = menu.addItem(withTitle: "", action: #selector(NSWindow.toggleFullScreen(_:)), keyEquivalent:"f")
|
||||||
fullScreenMenuItem.keyEquivalentModifierMask = [.command, .control]
|
fullScreenMenuItem.keyEquivalentModifierMask = [.command, .control]
|
||||||
|
|
||||||
return menu
|
return menu
|
||||||
|
|
Loading…
Reference in New Issue