fix: route the URL shortcut to the inline input
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user