1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-11-09 21:20:07 +01:00

👌 Add menu items so common shortcuts work again

This commit is contained in:
2021-12-03 21:44:32 +01:00
parent 912e549104
commit f8b0b38e9e
2 changed files with 17 additions and 21 deletions

View File

@@ -14,20 +14,4 @@ class SiteListWC: NSWindowController {
super.windowDidLoad()
}
/**
Allow users to close the window using Cmd-W, a shortcut I definitely use a lot.
*/
override func keyDown(with event: NSEvent) {
if event.modifierFlags.contains(.command) {
switch event.charactersIgnoringModifiers! {
case "w":
self.window?.close()
default:
break
}
} else {
super.keyDown(with: event)
}
}
}