i'm sure this seem silly to some, but I just wanted to ask it

What is the recommended way to catch a Key Event for Tab + Shift combo?

For Tab + CTRL it seems to work, but Tab + Shift doesn't.  When Tab + Shift
is pressed, keyval seems to be = 65056, instead of = 0xff09.
Is this Example the right way to check for Tab + Shift key release:

// ......................................
gboolean is_CTRL = FALSE, is_SHIFT = FALSE;
ClutterKeyEvent *kev = (ClutterKeyEvent *) event;
if (kev->modifier_state & CLUTTER_CONTROL_MASK)
  is_CTRL = TRUE;

if (kev->modifier_state & CLUTTER_SHIFT_MASK)
  is_SHIFT = TRUE;

switch( kev->keyval )
{
case CLUTTER_KEY_Tab:
  if( is_CTRL )
    g_print( " Tab + CTRL \n" );

  if( is_SHIFT )
    g_print( " Tab + SHIFT \n" );
  break;

default:
  break;
}
// ......................................

Thanks,
izzy.
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to