mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-04 05:40:17 +00:00
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:
parent
4638709db5
commit
0076f04639
3 changed files with 22 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue