Skip to content

Fix two-thumb backspace fragment modes#8

Merged
AsafMah merged 2 commits into
mainfrom
fix-backspace-delete-options
May 25, 2026
Merged

Fix two-thumb backspace fragment modes#8
AsafMah merged 2 commits into
mainfrom
fix-backspace-delete-options

Conversation

@AsafMah

@AsafMah AsafMah commented May 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Rename the fragment option to Delete last fragment.
  • Fix live fragment backspace so a swipe fragment is deleted as one unit.
  • Preserve committed gesture fragment metadata so repeated Backspace after delayed autospace pops one fragment at a time.
  • Make whole-word backspace with Delete live composing text off fall back to normal character deletion instead of no-op/double-delete behavior.

Tests

  • .\gradlew.bat :app:testOfflineDebugUnitTest --tests helium314.keyboard.latin.InputLogicTest.wholeWordBackspaceDeletesManualSpacingComposingWord --tests helium314.keyboard.latin.InputLogicTest.wholeWordBackspaceWithLiveComposingDeleteOffFallsBackToOneCharacter --tests helium314.keyboard.latin.InputLogicTest.fragmentBackspaceDeletesOnlySwipeFragment --tests helium314.keyboard.latin.InputLogicTest.fragmentBackspaceDeletesLastSwipeFragmentInMultipartWord --tests helium314.keyboard.latin.InputLogicTest.fragmentBackspaceDeletesLastSwipeFragmentAfterAutospaceCommit --tests helium314.keyboard.latin.InputLogicTest.wholeWordBackspaceWithLiveComposingDeleteOnClearsComposingSpan --tests helium314.keyboard.settings.SettingsContainerTest.twoThumbFragmentBackspaceLabelMatchesBehavior --no-daemon
  • .\gradlew.bat :app:installStandardDebug --no-daemon installed 1-LeanType_3.8.0-standard-debug.apk on SM-S936B after re-pairing wireless ADB.

Manual Tests — Two-thumb Backspace Modes

# Steps Expected Result
1 Open Settings → Two-thumb typing → Backspace behavior. The fragment option is labeled Delete last fragment.
2 Enable manual spacing, choose Delete last fragment, swipe one word, then press Backspace. The whole swiped fragment is removed in one press.
3 With Delete last fragment, swipe a word fragment and then swipe another fragment to extend it, then press Backspace. Only the latest fragment is removed; the previous fragment remains composing.
4 With Delete last fragment, wait for delayed autospace to commit the combined word, then press Backspace twice. The first press removes the autospace and latest fragment; the second press removes the previous fragment.
5 Choose Delete whole word, turn Delete live composing text off, type letters, then press Backspace. One character is deleted and the remaining text stays live/composing.
6 Choose Delete whole word, turn Delete live composing text on, type letters, then press Backspace. The whole live composing word is removed in one press, and the next typed word deletes normally.

AsafMah and others added 2 commits May 24, 2026 19:15
Preserve committed gesture fragment metadata so Delete last fragment can pop repeated fragments after delayed autospace commits. Also rename the setting label and make whole-word live composing deletion respect its sub-option.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Record the successful wireless ADB install after re-pairing the device.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@AsafMah
AsafMah merged commit 9b58744 into main May 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant