On Sat, Jun 19, 2010 at 12:58 PM, Paul Davis <paul@xxxxxxxxxxxxxxxxxxxxx> wrote: > 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. > I think you could do something roundabout like calling gtk_widget_add_accelerator() multiple times on one of your action's visible proxies (and yourself ensuring that the accel group <--> widget <--> window relationships are setup correctly). Curiously, is there a specific reason/policy why GtkActions dont like to have multiple accel keys defined ? > 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 > _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list