Hotkey Issue with AI-Writer Tool Across Applications

Hello,

I'm using the AI-Writer tool, available at GitHub - cenkalti/AI-Writer. It lets you set a hotkey to call ChatGPT for rewriting text. However, the hotkey doesn't work in all applications. It seems like some applications don't accept that hotkey, even though it's not reserved. I've set the hotkey to Ctrl + Option + Command + Backslash, and it links to a system service found in Keyboard Settings > Services > Text > "Rewrite with AI."

Is there a way to ensure this shortcut always calls the correct service, no matter which application I'm using? Oddly, it doesn't work in Google Docs, but it works in my web browser.

Web apps are notorious for grabbing, and overriding, keys strokes aimed at them -- including anything registered against a Service.

Keyboard Maestro hot keys are intercepted earlier in the "event chain", before they get to the browser, so you might be able to get round this by triggering AI-Writer directly. See if you can find the service, possibly in ~/Library/Services, and run it directly from a macro.

It may or may not work -- I've no idea how the service gets the "context", eg the selected text, and if that requires it being triggered via the application you may be stuck.

1 Like