- changed status to resolved
[VirtualKeyBoard] Crash on language change
If the selection box in VirtualKeyBoard
is set on one of the right-hand "keys" in the bottom row and YELLOW Change language is pressed to change to a different keyboard language, the GUI can crash.
The problem is that VirtualKeyBoard.markSelectedKey()
doesn't ensure that self.previousSelectedKey
is in the legal range for the language's keyboard before using it for indexing. Changing the language can change the legal range of the keyboard index.
Replication steps
Open an instance of VirtualKeyBoard
, e.g. MENU>Setup>Network>Mount manager>Change hostname. Stay in the default language (en_EN).
Use the arrow keys to move the selection square (white highlight square) to one of CLR, OK or EXIT on the right-hand end of the bottom row.
Press YELLOW Change language.
Crash.
Comments (2)
-
-
Merged in prl/easy-ui-4/Fix-bug-539 (pull request #264)
Fix bug
#539: [VirtualKeyBoard] Crash on language change→ <<cset 2a11f5aafada>>
- Log in to comment
Fix bug
#539: [VirtualKeyBoard] Crash on language changeIn VirtualKeyBoard.markSelectedKey(), ensure that self.selectedKey is in the correct index range before using it for indexing.
→ <<cset 70dae159049c>>