OK, thanks for the clarification. Now I understand what mean "extended
code".
Germán
El lun, 15-08-2016 a las 14:34 -0300, Antonio Scuri escribió:
>   Hi,
> 
>   That depends on the key. For instance, 'h' and 'H', 'H' does not
> have the extended key shift code set. So a key will have
> iup_XkeyShift(key) only if it also has iup_isXkey(key).
> 
>   Take a look at the iupkey.h for more details. 
> 
>   If you just want to detect the Shift key press, I suggest using the
> global attribute "MODKEYSTATE".
> 
> Best,
> Scuri
> 
> n Fri, Aug 5, 2016 at 6:47 PM, Germán Arias <[email protected]>
> wrote:
> > Hi,
> > 
> > I'm using IUP from svn (Revisión: 3718) on OpenSUSE leap with Gtk
> > 3. I
> > have a small example to test modifier keys. This is the K_ANY
> > callback
> > in this test:
> > 
> > int key_cb(Ihandle *ih, int c)
> > {
> >   printf("Code: %d Shift: %d \n", c, iup_isShiftXkey(c));
> >   return IUP_CONTINUE;
> > }
> > 
> > The iup_isShiftXkey allways return 0, no matter if I press Shift
> > key.
> > I'm doing something wrong?
> > 
> > Thanks
> > Germán
> > 
> > 
> > -------------------------------------------------------------------
> > -----------
> > _______________________________________________
> > Iup-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/iup-users
> > 
------------------------------------------------------------------------------
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to