Re: Problems with accelerators.
- From: Paul Davis <paul linuxaudiosystems com>
- To: sledge hammer <sledgehammer_999 hotmail com>
- Cc: gtk-list gnome org
- Subject: Re: Problems with accelerators.
- Date: Sat, 19 Jun 2010 12:58:16 -0400
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.
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]