Old 07-24-2021, 02:04 PM   #1
earhax
Human being with feelings
 
earhax's Avatar
 
Join Date: Nov 2015
Location: earth
Posts: 471
Default REAPER key codes?

Is there a list anywhere of which keyboard keys correspond to the numeric "KEY" numbers referenced in the reaper-kb.ini?

So far, I found the following (on macOS):
Code:
KEY 1 KEYCODE	= KEY
KEY 5 KEYCODE	= Shift+KEY
KEY 9 KEYCODE	= Cmd+KEY
KEY 13 KEYCODE	= Cmd+Shift+KEY
KEY 17 KEYCODE	= Opt+KEY
KEY 21 KEYCODE	= Opt+Shift+KEY
KEY 25 KEYCODE	= Cmd+Opt+KEY
KEY 29 KEYCODE	= Cmd+Opt+Shift+KEY
KEY 33 KEYCODE	= Ctrl+KEY
KEY 37 KEYCODE	= Shift+Ctrl+KEY
KEY 41 KEYCODE	= Cmd+Ctrl+KEY
KEY 45 KEYCODE	= Cmd+Shift+Ctrl+KEY
KEY 49 KEYCODE	= Opt+Ctrl+KEY
KEY 53 KEYCODE	= Opt+Shift+Ctrl+KEY
KEY 57 KEYCODE	= Cmd+Opt+Ctrl+KEY
KEY 61 KEYCODE	= Cmd+Opt+Shift+Ctrl+KEY
I also found that the key numbers used for the kb.ini aren't the same ones given by the "Key Codes" app.

I also found that I can find all actions/shortcuts using a particular key (including all modifier combos, global, global+text, and actions with more than one shortcut assigned) by searching the actions list for:
Code:
^KEY$ OR ^KEY, OR +KEY$ OR +KEY, OR )KEY$ OR )KEY,

Last edited by earhax; 07-24-2021 at 04:53 PM. Reason: made shortcut search string more exclusive
earhax is offline   Reply With Quote
Old 07-24-2021, 02:40 PM   #2
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

Not sure if that's what you're looking for (haven't gotten into this myself) but Meo-Ada Mespotine has an extensive list of Reaper key codes documented:
https://github.com/mespotine/ultrasc...per-kb_ini.ini
nofish is offline   Reply With Quote
Old 07-24-2021, 05:23 PM   #3
earhax
Human being with feelings
 
earhax's Avatar
 
Join Date: Nov 2015
Location: earth
Posts: 471
Default

Quote:
Originally Posted by nofish View Post
Not sure if that's what you're looking for (haven't gotten into this myself) but Meo-Ada Mespotine has an extensive list of Reaper key codes documented:
https://github.com/mespotine/ultrasc...per-kb_ini.ini
Perfect! This is exactly what I was looking for. Thanks!

Also, I'm baffled as to why there seem to be more than 255*129 combinations of keycodes that seem to all represent the same 1 or 2 keys with all the different modifier combinations. Seems overly redundant for some reason.
earhax is offline   Reply With Quote
Old 07-29-2021, 12:05 PM   #4
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Nope, you are probably looking for this:

https://mespotin.uber.space/Ultrasch...hortcutByKeyID

This Ultraschall-Api function should return the meaning of the KEY-codes.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 07-29-2021, 12:13 PM   #5
earhax
Human being with feelings
 
earhax's Avatar
 
Join Date: Nov 2015
Location: earth
Posts: 471
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Nope, you are probably looking for this:

https://mespotin.uber.space/Ultrasch...hortcutByKeyID

This Ultraschall-Api function should return the meaning of the KEY-codes.
Cool. Thank you!
earhax is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:23 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.