Re: Problems with accelerators.



Hi.

> I have some problems with accelerators. What do I need to do make an action
> fire when I press the * symbol? If I use for accelerator the GDK_asterisk
> define then the action is fired only when I press shift+8. I want it to fire
> when I press the * symbol in the numpad TOO. The same goes for /,+,- . What
> do I need to do to achieve this? Are there special "define"s in
> gdk/gdkkeysyms.h?

There are special defines in gdkkeysyms.h file:
* - GDK_KP_Multiply
/ - GDK_KP_Divide
+ - GDK_KP_Add
- - GDK_KP_Substract

> Also what defines should I use for these symbols: ^(shift+6), | (pipe)?

Not sure about these ones, but my advice would be not to use them. ^
might be mapped to shift+6 on your keyboard layout, but usually things
are much more complicated on other international layouts (for example,
on my Slovenian keyboard layout, ^ can only be displayed by pressing
"AltGr+3" and "space" - yes, it takes 2 steps and 3 keys to get this
single character).

Tadej

-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com


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