Skip to content

Commit 26d9466

Browse files
authored
Merge pull request Dimillian#9 from Dimillian/codex/github-mention-search-bar-typing-events-do-not-work
fix: activate app on launch when run via `swift run` fix Dimillian#8
2 parents 214b168 + 1d091ac commit 26d9466

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/CodexSkillManager/App/CodexSkillManagerApp.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
3535
#endif
3636

3737
func applicationDidFinishLaunching(_ notification: Notification) {
38+
// Ensure the app becomes key when launched from `swift run`.
39+
NSApplication.shared.setActivationPolicy(.regular)
40+
NSApplication.shared.activate(ignoringOtherApps: true)
41+
3842
#if canImport(Sparkle) && ENABLE_SPARKLE
3943
guard shouldEnableSparkle() else { return }
4044
updaterController = SPUStandardUpdaterController(

0 commit comments

Comments
 (0)