fix(web): set(layer) should not trigger for hardware keystrokes

This commit is contained in:
Joshua A. Horton 2022-07-06 12:11:30 +07:00
parent 9ffca15f64
commit 0596ef15b8

View file

@ -882,7 +882,8 @@ namespace com.keyman.text {
*/
setStore(systemId: number, strValue: string, outputTarget: OutputTarget): boolean {
this.resetContextCache();
if(systemId == KeyboardInterface.TSS_LAYER) {
// Unique case: we only allow set-store ops from keyboard rules triggered by touch OSKs.
if(systemId == KeyboardInterface.TSS_LAYER && this.activeDevice.touchable) {
// Denote the changed store as part of the matched rule's behavior.
this.ruleBehavior.setStore[systemId] = strValue;
} else {