#2765 Made sure extra sensitive modifier is not down on exact match
This commit is contained in:
parent
b80760bb2d
commit
adaf325e6f
|
@ -697,7 +697,8 @@ KeyMap::findBestKey(const KeyEntryList& entryList,
|
||||||
// check for an item that can accommodate the desiredState exactly
|
// check for an item that can accommodate the desiredState exactly
|
||||||
for (SInt32 i = 0; i < (SInt32)entryList.size(); ++i) {
|
for (SInt32 i = 0; i < (SInt32)entryList.size(); ++i) {
|
||||||
const KeyItem& item = entryList[i].back();
|
const KeyItem& item = entryList[i].back();
|
||||||
if ((item.m_required & desiredState) == item.m_required) {
|
if ((item.m_required & desiredState) == item.m_required &&
|
||||||
|
(item.m_required & desiredState) == (item.m_sensitive & desiredState)) {
|
||||||
LOG((CLOG_DEBUG1 "best key index %d of %d (exact)", i + 1, entryList.size()));
|
LOG((CLOG_DEBUG1 "best key index %d of %d (exact)", i + 1, entryList.size()));
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue