osx - Cocoa & Swift. How to show window without deactivating other window -
i have uielement set yes in info.plist. registered hotkey. when it's pressed, calls nswindowcontroller object , shows window.
but must call nsapp.activate(ignoringotherapps: true) after mainwindowcontroller.showwindow(self) , causing other windows blur.
i want create window not change other window's status can focus on (or receive local keyboard events), like alfred or spotlight does.
when alfred called out, chrome not blur. when hit keyboard, typed in alfred instead of chrome's input field.
when press [esc], alfred hides. chrome keeps activated , text field still focused on.
Comments
Post a Comment