intellibar / main

IntelliBar is an AI-powered assistant for the Mac.
https://intellibar.app/
37 stars 0 forks source link

Window appears but loses focus when using global shortcut #5

Open milescajus opened 1 year ago

milescajus commented 1 year ago

Hi there!

Using the global shortcut (⇧⌘Space) causes the IntelliBar window to appear but immediately loses focus, requiring a second press of the shortcut to allow text input without resorting to using the mouse. The application is indeed still 'focused' (the menu bar shows IntelliBar) but the window itself isn't; the window elements are grayed-out and the typing caret does not appear.

I have both HotKey and Karabiner-Elements installed but, from what I can see, neither app's configuration conflicts with IntelliBar's shortcut/key-combination.

Version: 0.8.0 OS: macOS 12.6.8

UPDATE: With some more experimentation, it seems to vary depending on what other application is focused when the global shortcut is used. If Safari is focused, IntelliBar seems to consistently lose focus. If Finder is focused, IntelliBar mostly achieves focus but still sometimes fails. Regardless of the 'background' application, the global shortcut seems to rapidly toggle IntelliBar's window focus, often 'landing' on an un-focused state.

astoilkov commented 1 year ago

I think I fixed the issue. I will let you know when we release the new version so you can also check it.