PDA

View Full Version : Grid keypress solution



eurobax
30 Dec 2011, 1:47 PM
I discovered, there is no direct event 'keypress' in grid.
My task is to handle good's titles typing in focused grid, and search them in grid on typing.
I think, using of KeyMap is not suitable, as there is a wide keys intervals like #|&|@|"|'|[0-1]|[A-Z]|[a-z] and so on in local charset.
Second, 'containerkeydown', as you know, doesn't let obtain character code, only keycode. So, what is the way to solve this.

mitchellsimoens
31 Dec 2011, 7:36 AM
String.fromCharCode(code);

eurobax
2 Jan 2012, 2:56 AM
Ok, how about cyrillic or non-ANSI codepage? I press '?', but
String.fromCharCode returns 'Z'