Differentiate left and right control keys
Posted
#1
(In Topic #1342)
Regular

Posted
Regular

Posted
Guru

The gambas Key.class gives same code for both control keys.
same for Shift
Only Alt keys differentiate as one if Key.AltKey and other is Key.AltGrKey
Posted
Guru

2 users sharing a keyboard cannot use Shift or Ctrl keys
Posted
Regular

They definitely have different scan codes (that's the low level code that's received at the OS level). I know that from a looooooooooong time ago and in a far distant galaxy.
It should be possible!
b
Posted
Guru

I only see Key.ControlKey constant
I know you can send with x11 Desktop.SendKey("Control_L")
but there's no way to receive
Key.Code for both control keys are the same and its Key.ControlKey
Posted
Guru

the Qt Key class only uses a Key_Control
Qt Namespace | Qt Core | Qt 6.9.2
there are ways to do it with the QT api but gambas Key.class does not do anything unusual, it only supports what the toolkit Key class supports in respect to Control and Shift Keys
c++ - How to distinguish between left and right modifier keys - Stack Overflow
No clue how to implement any of that though
Posted
Regular

1 guest and 0 members have just viewed this.


