chore(web): reduce layer-change noise

This commit is contained in:
Joshua A. Horton 2022-07-06 10:51:00 +07:00
parent 6fd9647957
commit 43a21c6b7b

View file

@ -42,6 +42,11 @@ namespace com.keyman.text {
}
set(value: string) {
// No need to signal changes when things stay the same.
if(this._value == value) {
return;
}
if(this.handler) {
if(this.handler(this, value)) {
return;
@ -105,7 +110,7 @@ namespace com.keyman.text {
return false; // web matches anything other than 'native'
}
break;
case 'native':
// This will return true for embedded KeymanWeb
case 'ie':
@ -118,7 +123,7 @@ namespace com.keyman.text {
return false;
}
break;
default:
return false;
}