On 14.04.2010, at 16:08, imm wrote:
> if(el) key_c = Fl::event_text()[0]; // probably a dodgy assumption... Don't use only the first char. There is no reason a key generates only a single byte. Especially considering UTF-8, you character may well be three bytes long (for example the Euro currency character). The length of the string in event_text is in Fl::event_length(), counted in bytes. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

