From 08ef07750d34f25eb08b8a3448d57737c098d1ff Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Tue, 8 Nov 2022 14:44:54 +1100 Subject: [PATCH] fix(web): Handle undefined keyId in multi-tap Fixes #7647. --- web/source/osk/browser/pendingMultiTap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/source/osk/browser/pendingMultiTap.ts b/web/source/osk/browser/pendingMultiTap.ts index a45f4050ee..90bf97c438 100644 --- a/web/source/osk/browser/pendingMultiTap.ts +++ b/web/source/osk/browser/pendingMultiTap.ts @@ -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) {