„Compare“ originates from OS‘s that use several keystrokes to write one character. For example, the Germn ö has a key on the German keyboard (so it’s a single keystroke and Fl::event_text returns the correct utf8 sequence. But if you have a U.S. keyboard, you can type ö by compositing “ and o . On macOS the sequence is Alt-U followed by O. FLTK outputs the “ after the first keystroke, and on the second keystroke, compose deletes the previous character and instead generates the ö.
This is pretty cool to watch when you compose Korean characters out of three keystrokes. fLTK „builds“ the finals glyph in three steps.
ggar...@gmail.com schrieb am Freitag, 22. August 2025 um 22:03:25 UTC+2:
I wrote a text input widget (NOT derived from Fl_Input or Fl_Input_ as
it is Vulkan based). I need some help in knowing how to handle
international input.
For example, how to handle:
ó or ü
Currently, my input widget uses Fl::event_text and as such, it gets
twice the input. That is both:
´ and ó
Can any of the developers point me to the location in the FLTK code
where composition keys are handled?
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.