mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 4bdbd254: am cde005c0: Fix apostrophe issue
* commit '4bdbd254bb9c25630af7549dfc27c1192f6b9e09': Fix apostrophe issue
This commit is contained in:
commit
ea89c5e317
@ -395,6 +395,11 @@ float ProximityInfoState::getPointToKeyLength(int inputIndex, int codePoint, flo
|
||||
const int index = inputIndex * mProximityInfo->getKeyCount() + keyId;
|
||||
return min(mDistanceCache[index] * scale, mMaxPointToKeyLength);
|
||||
}
|
||||
// TODO: Do not hardcode here
|
||||
// No penalty to ' and -
|
||||
if (codePoint == '\'' || codePoint == '-') {
|
||||
return 0;
|
||||
}
|
||||
// If the char is not a key on the keyboard then return the max length.
|
||||
return MAX_POINT_TO_KEY_LENGTH;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user