Affects Version/s: 7.0.4
Fix Version/s: 7.0.5
Security Level: Jimmy
- run the zul
- click the drop-down arrow to open Comboitem list
- press 1 on numbpad
Combobox selects the item "A1".
Combobox should select the item "1A".
In Combobox widget, otherPressed_(), String.fromCharCode(keyCode), keyCode of numpad 1 is 97 which is converted to char 'a'.
According to the conclusion of http://unixpapa.com/js/key.html
On keydown and keyup events, the keycodes are not character codes, and this conversion will give wild results for many keys. There is no general portable way to convert keycodes to characters
We should not convert keydown event's keycode into a string. The keypress event's which is suggested.
http://www.w3.org/2002/09/tests/keys.html demonstrates keycode difference.