fix(web): Handle undefined keyId in multi-tap

Fixes #7647.
This commit is contained in:
Marc Durdin 2022-11-08 14:44:54 +11:00
parent cbc63c42b2
commit 08ef07750d

View file

@ -92,7 +92,7 @@ namespace com.keyman.osk {
public incrementTouch(newKey: KeyElement): PendingMultiTapState {
// TODO: support for any key
if(this._state == PendingMultiTapState.Waiting) {
if(!newKey['keyId'].includes('K_SHIFT')) {
if(!newKey?.['keyId']?.includes('K_SHIFT')) {
this.cancel();
}
else if(++this._touches == this.count) {