Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JavaScriptDude/FutoBB10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

BB10-Style Swipe Left Delete Feature for FUTO Keyboard

This patch adds a BB10-style swipe left gesture for word deletion to the FUTO Keyboard (LatinIME).

Feature Description

Swipe left anywhere on the keyboard to delete text using BB10-style behavior:

  • If text is selected, delete the selection
  • If at the beginning of text with whitespace ahead, trim leading whitespace
  • If only whitespace before cursor, delete all leading whitespace
  • Otherwise, delete trailing whitespace and characters back to space or sentence boundary (stops at periods/semicolons with content before them)

The feature can be enabled/disabled in Settings → Typing → "Swipe Left Delete" (enabled by default).

Base Repository Version

This patch is based on:

  • Repository: https://gitlab.futo.org/keyboard/latinime.git
  • Branch: master
  • Commit: c92299b5c2a839e8f4ca1a9a70b569833b22e975
  • Date: December 2, 2025
  • Version Tag: 0.1.26.2-30-gc92299b5c (30 commits after v0.1.26.2)
  • Commit Message: "Update submodules"

How to Apply the Patch

1. Clone the Repository

# Clone the FUTO Keyboard repository
git clone https://gitlab.futo.org/keyboard/latinime.git latinime
cd latinime

2. Checkout the Exact Base Version

# Checkout the specific commit this patch was created against
git checkout c92299b5c2a839e8f4ca1a9a70b569833b22e975

3. Apply the Patch

# Apply the patch
git apply /path/to/swipe-left-delete-clean.patch
# Or if using patch command:
patch -p1 < /path/to/swipe-left-delete-clean.patch

4. Verify the Patch Applied Successfully

# Check the status
git status
# Review the changes
git diff

5. Build the Keyboard

# Make sure you have Java 17 and Android SDK configured
./gradlew assembleUnstableDebug
# The APK will be in:
# build/outputs/apk/unstable/debug/latinime-unstable-debug.apk

Files Modified

The patch modifies the following files:

  1. java/res/values/strings-uix.xml - UI strings for settings toggle
  2. java/src/org/futo/inputmethod/engine/IMEInterface.kt - Interface definition
  3. java/src/org/futo/inputmethod/engine/general/ActionInputTransactionIME.kt - Implementation stub
  4. java/src/org/futo/inputmethod/engine/general/GeneralIME.kt - Main implementation
  5. java/src/org/futo/inputmethod/engine/general/JapaneseIME.kt - Implementation stub
  6. java/src/org/futo/inputmethod/keyboard/KeyboardActionListener.java - Interface definition
  7. java/src/org/futo/inputmethod/keyboard/PointerTracker.java - Gesture detection
  8. java/src/org/futo/inputmethod/latin/LatinIMELegacy.java - Legacy IME bridge
  9. java/src/org/futo/inputmethod/latin/inputlogic/InputLogic.java - Deletion logic (145 lines added)
  10. java/src/org/futo/inputmethod/latin/settings/Settings.java - Settings constant
  11. java/src/org/futo/inputmethod/latin/settings/SettingsValues.java - Settings field
  12. java/src/org/futo/inputmethod/latin/uix/Settings.kt - DataStore settings key
  13. java/src/org/futo/inputmethod/latin/uix/settings/pages/Typing.kt - Settings UI toggle

Applying to a Newer Version

If you want to apply this patch to a newer version of the codebase:

# Checkout the version you want
git checkout master # or any other branch/tag
# Try to apply the patch
git apply /path/to/swipe-left-delete-clean.patch
# If there are conflicts, you can use 3-way merge:
git apply -3 /path/to/swipe-left-delete-clean.patch
# Or manually resolve conflicts

Testing the Feature

  1. Install the built APK on your Android device
  2. Enable "Swipe Left Delete" in Settings → Typing (it's enabled by default)
  3. Open any text field and type some text
  4. Swipe left anywhere on the keyboard to delete words
  5. Test edge cases:
    • Selection deletion
    • Deletion at sentence boundaries (periods, semicolons)
    • Leading whitespace trimming
    • Multiple word deletion

Build Requirements

  • Java 17 (use SDKMAN or similar for version management)
  • Android SDK with API level 34
  • Gradle (included via wrapper)

License

This patch maintains the same license as the original FUTO Keyboard project.

Home

https://github.com/JavaScriptDude/FutoBB10

About

Patch for Futo Android keyboard to Enable BB10 features

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /