Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 01-22-2023, 10:43 AM   #1
cjunekim
Human being with feelings
 
Join Date: Dec 2016
Posts: 255
Default gfx_getchar return values overlap

Hi

gfx_getchar's return values overlap between different keys.

Some examples:
  • ctrl+enter and ctrl+-(from numpad) : 13 (mouse_cap = 4)
  • ctrl+i and ctrl+tab : 9 (mouse_cap = 4)

I believe there are much more. There is currently no way to tell apart these key inputs.

I discovered this from using a JSFX. https://github.com/JoepVanlier/Hackey-Trackey/issues/95
cjunekim is offline   Reply With Quote
Old 01-24-2023, 05:25 AM   #2
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Which keymap are you using?
And can you check on the latest dev-releases if the problem still persists? There have been changes to getchar...
__________________
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 01-24-2023, 10:38 AM   #3
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,721
Default

yeah this is confirmed, one of those things that's hard to fix without breaking compat some (maybe a third return value giving a little more context...)

mapping ctrl+a-z to 1..26 seems like a bad idea, stems from the original win32-curses keyboard implementation trying to be cute and match a terminal's behavior, then extending ad infinitum
Justin is offline   Reply With Quote
Old 01-24-2023, 10:41 AM   #4
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Which compatibility-issues could happen?
__________________
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 01-24-2023, 02:19 PM   #5
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,721
Default

Quote:
Originally Posted by Meo-Ada Mespotine View Post
Which compatibility-issues could happen?

Quote:
ctrl+i and ctrl+tab : 9
If we change ctrl+i, then ctrl+i breaks in some context, if we change ctrl+tab, then ctrl+tab breaks...


(on a classic terminal, Ctrl+I is tab...)
Justin 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 07:29 PM.


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