bug: Cmd+J opens accessibility preference pane, regardless of focussed app
Describe the bug On macOS, when Jan is opened and has not been given permission to control the computer, Cmd+J opens the accessibility preference pane, hence rendering the shortcut unusable in every other app.
Steps to reproduce Steps to reproduce the behavior:
- Make sure, Jan does not have permission to control the computer.
- Open Jan.
- Focus another app that uses Cmd+J as hotkey (for example Visual Studio Code).
- Press Cmd+J.
Actual behavior The focused app does not receive the Cmd+J hotkey. Instead, the accessibility preference pane is brought up.
Expected behavior The focused app receives the Cmd+J hotkey and does its thing. (In the case of Visual Studio Code that would be toggling the panel visibility.)
Environment details
- Operating System: macOS 14.1
- Jan Version: 0.4.9
- Processor: Apple M2
- RAM: 24GB
Additional context It appears from the code that Cmd+J is registered as global hotkey for a feature called "quick ask". Likely, global hotkeys require permission to control the computer, which would explain why macOS deems it appropriate to bring up the preference pane.
hi @dschuessler, the quick ask feature is still under experimental atm, for temporally workaround, you can turn it off in the setting for the time being 🙏
Potentially related to https://github.com/janhq/jan/issues/2589. Please follow up using that issue 🙏