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
On 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
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users