|
|
On 3/5/24 19:54 Manolo wrote:
I would just like to stress, even if it's present also in Albrecht's
analysis, that this new issue is independent from the GUI scaling
mechanism.It's in how FLTK's Windows platform processes keystrokes
with Ctrl and a non-alphabetic key.
Yes, I agree.
I can add that there is also an issue under FLTK+Windows with
'Ctrl+digit' keystrokes for Fr keyboards that have numbers in the
uppercase position of their key.
Well, that's a similar issue.
My research on Windows did unfortunately not yield an usable result. It
looks like Windows provides first a keydown event with a "scan code"
which is the "physical" key number (location). In the second stage
(message) Windows gives us a "translated" value which is fine for all
printable ASCII and Unicode characters. This can be used to put the
value in Fl::event_text(). This works also for CTRL combined with letter
keys. So far, so good.
However, for non-letter keys like '+', '-', '=' I couldn't find a usable
value. It looks like CTRL / X where X is a key on the default (US)
keyboard layout. This doesn't really help. There are more functions I
didn't explore (yet?) to map virtual keycodes to a specific key
dependent on the "keyboard layout". This *might* help if this would give
us the information that (a) the CTRL key and (b) the '=' key was
pressed. The latter maybe derived from the scan code and the current
keyboard layout...
These MS docs are really confusing, and "simple" tests result in more
and more questions. I'm close to giving up.
If anybody could help by contributing code how to map a CTRL/K combo
with 'K' not being an alphabetical key, then I'd appreciate this very much!
The FLTK X11 and Wayland code contains a few lines that do extra
operations for number keys exactly to allow use of 'Ctrl+digit'
keystrokes with Fr keyboards.
That's good - and good to know. Can you give me a pointer to where such
code is, for both platforms? TIA.
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/030c57e7-2041-4032-8782-63388e8c6a0f%40aljus.de.
[ Direct Link to Message ] | |
|
| |