[pygtk] AccelGroup and Up/Down/Left/Right keys
Pierre
nbytes at online.fr
Thu Jun 25 19:35:57 WST 2009
Alessandro Dentella wrote:
> On Fri, Jun 19, 2009 at 08:52:44AM +0200, Pierre wrote:
>> Hi list,
>>
>> I was wondering if it's possible to use the 'Up', 'Down', 'Left', and
>> 'Right' keys as accelerators in AccelGroup.
>>
>> I'm led to believe one can't, as the short snippet below fails to call
>> the blop() method when 'Up' is pressed, whereas pressing 'b' does
>> succesfully call blip().
>>
>> Is there any workaround ?
>
>
> I obtain the same result and do not have workaroud. Have you noticed that
> <Ctrl>Up works. It seems GTK reserve Up.
>
> In fact if you try in gnome to bind shortcuts to Up, a message warns you that
> that "would interfere with normal operation"...
>
> sandro
> *:-)
The 'Keyboard Interaction' section of the Gnome HIG says:
« Do not use general navigation functions to trigger operations. For
example, do not use basic Tab keyboard navigation in a dialog to
activate any actions associated with a control. »
http://library.gnome.org/devel/hig-book/stable/input-keyboard.html.en#keynav-applets
I guess that could be the reason.
Cheers,
- Pierre
More information about the pygtk
mailing list