fix: route the URL shortcut to the inline input

This commit is contained in:
2026-10-19 19:09:11 +02:00
parent f6485bf221
commit d068c52e04
5 changed files with 32 additions and 26 deletions
+7
View File
@@ -79,6 +79,13 @@ private enum WindowDragCheck {
}
static func clickStartURL(in window: NSWindow) {
if phase != 0 {
let event = NSEvent.keyEvent(with: .keyDown, location: .zero, modifierFlags: [.command, .shift],
timestamp: ProcessInfo.processInfo.systemUptime, windowNumber: window.windowNumber,
context: nil, characters: "O", charactersIgnoringModifiers: "o", isARepeat: false, keyCode: 31)!
NSApp.postEvent(event, atStart: false)
return
}
for type in [NSEvent.EventType.leftMouseDown, .leftMouseUp] {
let event = NSEvent.mouseEvent(with: type, location: NSPoint(x: 400, y: 272),
modifierFlags: [], timestamp: ProcessInfo.processInfo.systemUptime,