mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-14 01:47:30 +00:00
Merge pull request #2077 from keymanapp/web-1733-duplicate-ids
[Web] Highlighting checks key instance, not key id
This commit is contained in:
commit
ca72a02044
2 changed files with 2 additions and 2 deletions
|
|
@ -395,7 +395,7 @@ namespace com.keyman.dom {
|
|||
this.currentTarget = key1;
|
||||
|
||||
// Clear previous key highlighting
|
||||
if(key0 && key1 && (key1.id != key0.id)) {
|
||||
if(key0 && key1 && key1 !== key0) {
|
||||
this.highlight(key0,false);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1097,7 +1097,7 @@ namespace com.keyman.osk {
|
|||
this.currentTarget = key1;
|
||||
|
||||
// Clear previous key highlighting
|
||||
if(key0 && key1 && (key1.id != key0.id)) {
|
||||
if(key0 && key1 && key1 !== key0) {
|
||||
this.highlightKey(key0,false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue