johnlindquist / kit

Script Kit. Automate Anything.
https://scriptkit.com
MIT License
3.91k stars 138 forks source link

Shortcode on Windows gets executed without pressing Space #1362

Closed patrikzudel closed 1 year ago

patrikzudel commented 1 year ago

I am not sure if I am doing something wrong, but on Windows, my Shortcodes get executed without pressing spacebar.

For example: In my code: // Shortcode: n

Behaviour: I open the main menu (My hotkey is Control + Space), I press "n" and immediately the script runs.

Side effect of this is that I can't search anything that starts with the letter 'n'.

johnlindquist commented 1 year ago

Thanks, that's a bug. I've been refactoring to add support for "Keywords" (allow you to immediately display the script in the main menu prefixed by the keyword, like Alfred):

CleanShot 2023-10-22 at 14 29 27

Shortcodes got mangled with "commandChars" during the refactor. "commandChars" use a "submit on type" behavior like you're experiencing, usually in a y/n scenario:

CleanShot 2023-10-22 at 14 32 50

I'll get it sorted out in the next build.

johnlindquist commented 1 year ago

@patrikzudel would you mind testing on this build?

https://github.com/johnlindquist/kitapp/releases/tag/v1.98.9

patrikzudel commented 1 year ago

Works well now, thank you!