Allow clear clipboard history toolbar key in normal toolbar (#679)

Co-authored-by: codokie <@>
Co-authored-by: Helium314 <helium314@disroot.org>
This commit is contained in:
codokie 2024-05-26 00:12:11 +03:00 committed by GitHub
parent c98d6d0cc6
commit 2c24f190c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 7 deletions

View file

@ -730,6 +730,9 @@ public final class InputLogic {
case KeyCode.CLIPBOARD_COPY_ALL:
mConnection.copyText(false);
break;
case KeyCode.CLIPBOARD_CLEAR_HISTORY:
mLatinIME.getClipboardHistoryManager().clearHistory();
break;
case KeyCode.CLIPBOARD_CUT:
if (mConnection.hasSelection()) {
mConnection.copyText(true);