properly re-sort the list when copying an existing clipboard entry

This commit is contained in:
Helium314 2024-04-12 17:35:57 +02:00
parent f915e46468
commit a9411b3631
2 changed files with 16 additions and 8 deletions

View file

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