forked from extern/Unexpected-Keyboard
Fix inconsistent highlighting of lockable keys
Pointers.getKeyFlags might receive a different KeyValue than what's stored in the pointer due to caching. Compare names instead.
This commit is contained in:
parent
5665d6a7c5
commit
2ea256e769
@ -53,7 +53,7 @@ public final class Pointers implements Handler.Callback
|
|||||||
public int getKeyFlags(KeyValue kv)
|
public int getKeyFlags(KeyValue kv)
|
||||||
{
|
{
|
||||||
for (Pointer p : _ptrs)
|
for (Pointer p : _ptrs)
|
||||||
if (p.value == kv)
|
if (p.value.name == kv.name) // Physical equality
|
||||||
return p.flags;
|
return p.flags;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user