use the new software dead event

This commit is contained in:
Helium314 2025-01-13 20:10:41 +01:00 committed by GitHub
parent 007f386066
commit 9df8fdfcfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1498,7 +1498,7 @@ public class LatinIME extends InputMethodService implements
// checking if the character is a combining accent // checking if the character is a combining accent
if (0x300 <= codePoint && codePoint <= 0x35b) { if (0x300 <= codePoint && codePoint <= 0x35b) {
event = Event.createDeadEvent(codePoint, 0, metaState, null); event = Event.createSoftwareDeadEvent(codePoint, 0, metaState, x, y, null);
} else { } else {
event = createSoftwareKeypressEvent(codePoint, metaState, keyX, keyY, isKeyRepeat); event = createSoftwareKeypressEvent(codePoint, metaState, keyX, keyY, isKeyRepeat);
} }