Skip to content

Commit

Permalink
fix: could not perform backspace action when not composing
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Nov 11, 2024
1 parent fafb034 commit a940ff3
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,7 @@ open class TrimeInputMethodService : LifecycleInputMethodService() {
}

private fun handleBackSpaceKey() {
currentInputEditorInfo.run {
if (inputType and InputType.TYPE_MASK_CLASS == InputType.TYPE_NULL) {
sendDownUpKeyEvents(KeyEvent.KEYCODE_DEL)
}
}
sendDownUpKeyEvents(KeyEvent.KEYCODE_DEL)
}

private fun handleReturnKey() {
Expand Down

0 comments on commit a940ff3

Please sign in to comment.