mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-18 23:20:54 +00:00
cut toolbar key (#678)
This commit is contained in:
parent
6a9156f0eb
commit
f915e46468
10 changed files with 33 additions and 3 deletions
|
@ -716,6 +716,15 @@ public final class InputLogic {
|
|||
case KeyCode.CLIPBOARD_COPY:
|
||||
mConnection.copyText();
|
||||
break;
|
||||
case KeyCode.CLIPBOARD_CUT:
|
||||
if (mConnection.hasSelection()) {
|
||||
mConnection.copyText();
|
||||
final Event backspaceEvent = LatinIME.createSoftwareKeypressEvent(KeyCode.DELETE,
|
||||
event.getMX(), event.getMY(), event.isKeyRepeat());
|
||||
handleBackspaceEvent(backspaceEvent, inputTransaction, currentKeyboardScript);
|
||||
inputTransaction.setDidAffectContents();
|
||||
}
|
||||
break;
|
||||
case KeyCode.ARROW_LEFT:
|
||||
sendDownUpKeyEvent(KeyEvent.KEYCODE_DPAD_LEFT);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue