Greek accent/dead key support (#1240)

Greek accent/dead key support: simplify by making every combining accent key a dead key

---------

Co-authored-by: Helium314 <helium314@mailbox.org>
This commit is contained in:
tenextractor 2025-01-14 00:42:01 +05:30 committed by GitHub
parent 4638709db5
commit 0076f04639
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 22 additions and 3 deletions

View file

@ -1496,7 +1496,15 @@ public class LatinIME extends InputMethodService implements
// this transformation, it should be done already before calling onEvent.
final int keyX = mainKeyboardView.getKeyX(x);
final int keyY = mainKeyboardView.getKeyY(y);
final Event event = createSoftwareKeypressEvent(codePoint, metaState, keyX, keyY, isKeyRepeat);
final Event event;
// checking if the character is a combining accent
if (0x300 <= codePoint && codePoint <= 0x35b) {
event = Event.createSoftwareDeadEvent(codePoint, 0, metaState, x, y, null);
} else {
event = createSoftwareKeypressEvent(codePoint, metaState, keyX, keyY, isKeyRepeat);
}
onEvent(event);
}