From 1730ef6315931b67123749f5babf0495b280cf0a Mon Sep 17 00:00:00 2001 From: jahorton Date: Tue, 27 Jul 2021 11:46:21 +0700 Subject: [PATCH] fix(web): restores code lost due to cherrypick rebase conflicts --- web/source/osk/visualKeyboard.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/source/osk/visualKeyboard.ts b/web/source/osk/visualKeyboard.ts index f1e0840a00..26fffd92e6 100644 --- a/web/source/osk/visualKeyboard.ts +++ b/web/source/osk/visualKeyboard.ts @@ -1022,6 +1022,12 @@ namespace com.keyman.osk { layerChangeHandler: text.SystemStoreMutationHandler = function(this: VisualKeyboard, source: text.MutableSystemStore, newValue: string) { + // This handler is also triggered on state-key state changes (K_CAPS) that + // may not actually change the layer. + if(this) { + this._UpdateVKShiftStyle(); + } + if(source.value != newValue) { this.layerId = newValue; let keyman = com.keyman.singleton;