Re: Problems with accelerators.
- From: Tristan Van Berkom <tvb gnome org>
- To: Paul Davis <paul linuxaudiosystems com>
- Cc: gtk-list gnome org
- Subject: Re: Problems with accelerators.
- Date: Sat, 19 Jun 2010 13:08:30 -0400
On Sat, Jun 19, 2010 at 12:58 PM, Paul Davis <paul linuxaudiosystems com> wrote:
> On Sat, Jun 19, 2010 at 6:30 AM, sledge hammer
> <sledgehammer_999 hotmail com> 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 gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]