Page 1 of 1

keymap issues

Posted: Sun Apr 27, 2014 1:19 pm
by hidnplayr
Hi,

Some keys on the keyboard have no ASCII code.
Yet, KolibriOS returns ASCII codes for most of them.
Take for example the f-keys, they return ASCII codes for the numbers "2", "3", "4", ...

My proposal:
Update keymaps in kernel and setup/panel applications so that these keys will return ASCII code 0 (NULL).
The code in kernel will also need to be updated because now it does not allow code 0.

Any problems/suggestions?

Re: keymap issues

Posted: Sun Apr 27, 2014 9:24 pm
by Mario_r4
hidnplayr wrote:Any problems/suggestions?
SVN r.4588, 4590.

Re: keymap issues

Posted: Sun Apr 27, 2014 9:36 pm
by hidnplayr
Mario:
The problem lies in the fact that returned ASCII codes are invalid for some keys.
For example, pressing F1 key in MTDBG will show up as "2" in the textbox.
It's possible to filter these keys out at the application level, by using the scancodes, but it's not a good solution IMHO.