Re: Problems with accelerators.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jun 19, 2010 at 6:30 AM, sledge hammer
<sledgehammer_999@xxxxxxxxxxx> wrote:

> I want the action to fire to both key-presses, both with GDK_asterisk(in my
> keyboard shift+8) and GDK_KP_Multiply (in numpad).
> Is this even possible?

basically, no.

bindings are from keycodes to actions, not characters to actions.
KP_Multiply and "*" are entirely different keycodes even if they might
often be associated with the same character when used for text entry
etc.

if you want to do this, you'd have to take over keyboard event
handling yourself and then lookup the actions/closures and activate
them.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux