Home » U++ Library support » U++ Widgets - General questions or Mixed problems » AK example and/or key_source bug? (The key tables or hash or something isn't working right for key '1')
AK example and/or key_source bug? [message #44054] |
Fri, 19 December 2014 15:04  |
rainbowsally
Messages: 29 Registered: December 2014
|
Promising Member |
|
|
Using Linux.
In the AK demo/example where we input new key bindings for the menu selections, when I enter Ctrl-1 for the key to trigger the first menu item using the top row keys on my keyboard the code isn't right. When I use the '1' on the keypad it is.
The demo works, but the encoding doesn't.
Number '2' encodes and decodes correctly in the top row keys. I could'nt see where the problem was coming from -- just guessing it's a key table.
Sorry if this has been addressed already. There's a LOT of material here.

Also, when I change the language to Czech, only the second menu item changes.
[Edited...]
I see now that this is (apparently?) intentional.
KEY(FN1, "First function", K_CTRL_M)
KEY(FN2, t_("Second function"), K_CTRL_W)
KEY(EXIT, t_("Exit"), K_CTRL_Q)
FN1 doesn't get translated.
Good hacking exercise. But the key encoding.. that's a bit advanced.
[Updated on: Fri, 19 December 2014 15:10] Report message to a moderator
|
|
|
|
Re: AK example and/or key_source bug? [message #44063 is a reply to message #44055] |
Sun, 21 December 2014 11:40  |
rainbowsally
Messages: 29 Registered: December 2014
|
Promising Member |
|
|
Hi Manfred.
ManfredHerr wrote on Fri, 19 December 2014 15:39Using LINUX. But also using GTK or X11 pure?
My finding on UBUNTU 14.04 is that key encoding is different.
[Edited..]
Forget what I wrote below. I now think the key encoding works, but the decoding to output the key names isn't working right all the time.
-------
I'm using KDE at this time. But what we use should not matter.
Our main event loop in UPP calls X11 functions directly and receives X11 events directly from the X server.
The key defs should also be X11 defs or accurate translations of those to VK_<name> and key masks without any duplicates.
The X11 key definitions are in
/usr/include/X11/keysymdef.h
[Updated on: Sun, 21 December 2014 13:44] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:05:30 CEST 2025
Total time taken to generate the page: 0.00433 seconds
|