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

[STR New]

Link: http://www.fltk.org/str.php?L1941
Version: 2.0-current


Hi:
First of all, sorry if i'm mistaking proceedings here, i'm new. Second,
just in case, sorry for my english :-)
Machine Info: Core 2 duo, Arch Linux, GCC, spanish keyboard
BUG: compose function does not discriminate altgr. I have a spanish
keyboard and couldn't type any altgr combination in TextEditor. After some
research, i found that compose takes altgr as just alt and returns false.
I'm attaching a dead simple patch for this. It is very simple, but may be
usefull to end users. Patch is made from r6101.
Not sure of the correct priority for this, it's a key functionality to me,
but maybe not to others. So i'm setting it to LOW.

Greetings
PEP


Link: http://www.fltk.org/str.php?L1941
Version: 2.0-current
--- compose.cxx 2008-04-24 09:01:52.000000000 -0300
+++ compose_altgr_fix.cxx       2008-04-24 09:00:54.000000000 -0300
@@ -404,7 +404,7 @@
   // Alt+letters are reserved for shortcuts.  But alt+foreign letters
   // has to be allowed, because some key layouts require alt to be held
   // down in order to type them...
-  if ((e_state & (ALT|META)) && !(ascii & 128)) return false;
+  if ((e_state & (ALT|META)) && !(ascii & 128) && !(e_state & SCROLLLOCK) ) 
return false;
 
   // See if they type the compose prefix key:
   if (i == RightCtrlKey || i == 0xff20/* Multi-Key */) {
_______________________________________________
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to