DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2444
Version: 1.3-current


Some digging.

I decided to focus on the Fl_Input::handle_key() function Fl_Input.cxx
to see what comes in when sequences like CTRL-C are used. Specifically:

    char ascii = Fl::event_text()[0];

When running in the SGI environment described above, hitting CTRL-C
calls the handle_key() function twice, once for each keystroke:

     1) User hits CTRL, ascii = 0
     2) User hits C, ascii = 0x63  <-- 'c'

When running locally on the linux machine, it too calls handle_key()
twice, once for each keystroke, but:

     1) User hits CTRL, ascii = 0
     2) User hits C, ascii = 0x03   <-- ctrl-c!

So that's the problem. I'm not sure how to solve it though.
Seems to go deeper into the FLTK code with respect to how
FL_KEYBOARD events affect the contents of Fl::event_text().


Link: http://www.fltk.org/str.php?L2444
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to