mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-12 02:27:42 +00:00
chore(web): reduce layer-change noise
This commit is contained in:
parent
6fd9647957
commit
43a21c6b7b
1 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue