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

Reply
 
Thread Tools Display Modes
Old 11-13-2017, 08:27 PM   #1
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,450
Default gfx.getchar() does not return anything when using Ctrl/Alt + number keys (Win7)

When pressing Ctrl/Alt and any key of the row above the letters ( 1234567890-= ), gfx.getchar() does not return anything. The same applies to any modifier key combination that involves either the Alt or the Ctrl (for example Shift + Alt).

Furtermore, the F keys (F1-F12) return the same value no matter if a modifier key is pressed together.

All this on Windows 7 x64
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 11-15-2017, 07:36 AM   #2
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,450
Default

You can use "cfillion_GFX Keyboard Inspector.lua" (found in ReaPack) for a quick demonstration of the bug
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 11-18-2017, 09:01 AM   #3
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,450
Default

A .gif that shows the bug:

__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 11-25-2017, 09:13 AM   #4
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,450
Default

bump...
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 12-18-2017, 07:26 AM   #5
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,450
Default

another bump, since this is useful for scripting
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 01-01-2018, 09:39 PM   #6
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,450
Default

another bump...

Would be nice if someone could confirm the bug in his/her system in this thread
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma is offline   Reply With Quote
Old 01-01-2018, 11:03 PM   #7
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,910
Default

Quote:
Originally Posted by cfillion View Post
I can reproduce on Windows. It works when using the numpad. All number keys are correctly detected on macOS and Linux with any modifiers.

I was going to suggest using gfx.getchar(49) as a workaround but it doesn't seem to work right either on Windows: once it returns 1.0 (for a number key press) it doesn't go back to 0.0 when the key is released until the GFX window loses focus...
​​​​​
cfillion is offline   Reply With Quote
Old 01-02-2018, 09:38 AM   #8
amagalma
Human being with feelings
 
amagalma's Avatar
 
Join Date: Apr 2011
Posts: 3,450
Default

Thanks cfillion for confirming it here too.

Hopefully, the devs can fix it
__________________
Most of my scripts can be found in ReaPack.
If you find them useful, a donation would be greatly appreciated! Thank you! :)
amagalma 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 12:49 AM.


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