GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tab key code?

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
dreblen
Never Seen the Sunlight


Joined: 14 Jun 2007
Posts: 426
Location: Falun, WI USA

PostPosted: Sat May 17, 2008 11:26 pm    Post subject: Tab key code? Reply with quote

Hi, I'm trying to catch Control+Tab and Control+Shift+Tab key presses in a key_press_event callback.
The problem is that it appears that when shift is pressed along with tab, its keyval is GDK_ISO_Left_Tab instead of GDK_Tab.
Is there any way I can catch a generic "Tab" press, or do I have to do:
Code: (C)
1
if(keyval == GDK_Tab || keyval == GDK_ISO_Left_Tab /*etc.*/)

Thanks...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP