WT keyboard input
Added by M R over 3 years ago
Hello folks,
I am trying to get the input from the browser keydown event and use it (transform it in a scan code) in a C app.
I've managed to do this, but I've found a WT (c) limitation: not all the keys are mapped.
https://github.com/emweb/wt/blob/3f23311242085576600d309b81883fe7feaa760e/src/Wt/WGlobal.h#L808
The above enum does not contain all the physical keys. E.g. if you press '[' , Key will default to 'Unknown'. There are many like this.
This issue prevents me from getting all the characters right.
What do you think about this? This is a fault, right?
Thanks,
MR
Replies (1)
RE: WT keyboard input - Added by Roel Standaert over 3 years ago
I think this is because it was based on the older keyCode
parameter, where the value is implementation-dependent and so can't really be relied upon.
There is a newer key
parameter which should probably get precedence over keyCode
, which we could support. I think then we can't really enumerate all of the possible values, though.