Peter Clifton wrote:
> On Fri, 2007-02-16 at 00:42 -0500, Dan McMahill wrote:
> 
>>quoting from:
>>
>>
> 
> http://developer.gnome.org/doc/API/2.0/gtk/gtk-Keyboard-Accelerators.html#gtk-accelerator-parse
> 
>>
>>"Parses a string representing an accelerator. The format looks like 
>>"<Control>a" or "<Shift><Alt>F1" or "<Release>z" (the last one is for 
>>key release). The parser is fairly liberal and allows lower or upper 
>>case, and also abbreviations such as "<Ctl>" and "<Ctrl>".
>>
>>If the parse fails, accelerator_key and accelerator_mods will be set
> 
> to 
> 
>>0 (zero).
>>
>>accelerator :         string representing an accelerator
>>accelerator_key :     return location for accelerator keyval
>>accelerator_mods :    return location for accelerator modifier mask
>>"
>>
>>Ok, so I give up.  Where exactly is this format documented?  For 
>>example, I can't seem to get "F1", "F2", etc to work and I'm not sure 
>>what to enter for the tab, space, page up/down, backspace, delete, etc
> 
> keys.
> 
>>Also, is there a list of non-allowed keys for menu accelerators?
> 
> 
> Hi Dan,
> 
> I've not spotted any docs anywhere for that either, and as per standard
> GTK and GLib development requirements, keep a copy of the full
> source-code to trawl through... I hope your request for better
> documentation doesn't get shot down in flames like the last one.
> 
> If you grab the source tarball, and look under gdk/gtkkeynames.c, you
> will find an array which defines all the key names.
> 
> The ones mentioned:
> 
> ':' -> "colon"
> '=' -> "equal" 
> "<shift>=" -> (I'd guess <shift>equal, <shift><equal> or similar?)
> '/' -> "slash"
> 
> I've no idea which the square brackets are...

gtk+-2.10.9/gdk/keynames.txt combined with xev managed to get me what I 
needed.

Just posting here for the sake of having an answer in the archives.

-Dan


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to