move some key press logic from LatinIme into KeyboardActionListener

This commit is contained in:
Helium314 2025-06-14 12:16:29 +02:00
parent a37de668c0
commit 9c97a6b9bf
7 changed files with 98 additions and 96 deletions

View file

@ -718,7 +718,7 @@ public final class InputLogic {
if (mConnection.hasSelection()) {
mConnection.copyText(true);
// fake delete keypress to remove the text
final Event backspaceEvent = LatinIME.createSoftwareKeypressEvent(KeyCode.DELETE, 0,
final Event backspaceEvent = Event.createSoftwareKeypressEvent(KeyCode.DELETE, 0,
event.getMX(), event.getMY(), event.isKeyRepeat());
handleBackspaceEvent(backspaceEvent, inputTransaction, currentKeyboardScript);
inputTransaction.setDidAffectContents();