Jump to content

KeyCodes — Translate keyboard keys to AppleScript key codes

Recommended Posts

  • 1 month later...
  • 6 months later...

Thanks for making this, it's very useful. I have a feature request, could you make it possible to also do inverse search, e.g. "kc 53" would find Escape? This could be useful when reading AppleScript with key code statements, to figure out what they do quickly.

Link to comment
39 minutes ago, cands said:

could you make it possible to also do inverse search, e.g. "kc 53" would find Escape?


That’s a reasonable request, but I won’t do it. It’d require either changing from the List Filter Input (which I don’t want to do, because I like how clear it is to non-coders) or making the numbers be in the title (which I don’t want to do because it looks ugly).

You can do that, though. Open the List Filter, and for each item copy or cut the subtitle and paste it in the title. It’ll start working as you want right away.

Link to comment
3 hours ago, deanishe said:

Could you not add additional entries to the List Filter that are the other way around (i.e. "53" is the title and "⎋ / Escape" is the subtitle)?


Yes, but that falls on the “don’t want to do because it looks ugly”.

I’d rather do it without the List Filter. It’s a good use case for match. It’s still less clear to non-coders, but maybe that’s not as important in this case.

Link to comment

Thanks for your input. I understand that I can copy the information in the subtitle to the title to make it work, but I feel it's a pity that this is needed since the necessary information is already provided to the List Filter, and I agree it would look ugly. It makes me think that it may be good if Alfred could allow for (optionally) searching the subtitles as well. I'm also curious, how could it be done using 'match' @vitor

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...