mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-15 02:17:32 +00:00
fix(web): crash in highlightKey when key.className is not a string
Fixes KEYMAN-WEB-X
This commit is contained in:
parent
fa3e37cdba
commit
9fef046b79
1 changed files with 1 additions and 1 deletions
|
|
@ -1921,7 +1921,7 @@ namespace com.keyman.osk {
|
|||
**/
|
||||
highlightKey(key: KeyElement, on: boolean) {
|
||||
// Do not change element class unless a key
|
||||
if(!key || (key.className == '') || (key.className.indexOf('kmw-key-row') >= 0)) return;
|
||||
if(!key || (key.className == '') || (typeof key.className != 'string') || (key.className.indexOf('kmw-key-row') >= 0)) return;
|
||||
|
||||
var classes=key.className, cs = ' kmw-key-touched';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue