macOS: revert some changes
parent
968ca02a08
commit
b2835f2f7d
|
|
@ -620,10 +620,8 @@ class AppDelegate: NSObject,
|
|||
return event
|
||||
}
|
||||
|
||||
@MainActor
|
||||
@objc private func windowDidBecomeKey(_ notification: Notification) {
|
||||
let window = notification.object as? NSWindow
|
||||
syncFloatOnTopMenu(window)
|
||||
syncFloatOnTopMenu(notification.object as? NSWindow)
|
||||
}
|
||||
|
||||
@objc private func quickTerminalDidChangeVisibility(_ notification: Notification) {
|
||||
|
|
|
|||
|
|
@ -116,8 +116,8 @@ extension Ghostty {
|
|||
/// configuration would be "quit" action.
|
||||
///
|
||||
/// Returns nil if there is no key equivalent for the given action.
|
||||
func keyboardShortcut(for action: String?) -> KeyboardShortcut? {
|
||||
guard let action, let cfg = self.config else { return nil }
|
||||
func keyboardShortcut(for action: String) -> KeyboardShortcut? {
|
||||
guard let cfg = self.config else { return nil }
|
||||
|
||||
let trigger = ghostty_config_trigger(cfg, action, UInt(action.lengthOfBytes(using: .utf8)))
|
||||
return Ghostty.keyboardShortcut(for: trigger)
|
||||
|
|
|
|||
Loading…
Reference in New Issue