Skip to content

fix: Brave single-letter doubling and taskbar overlap in toolbar-only mode (#880) - #881

Merged
LeanBitLab merged 3 commits into
mainfrom
fix/880-brave-single-letter-taskbar
Nov 20, 2026
Merged

LeanBitLab merged 3 commits into
mainfrom
fix/880-brave-single-letter-taskbar

Conversation

@LeanBitLab

Copy link
Copy Markdown
Owner

Summary of Changes

Fixes the two physical keyboard bugs from #880 and makes the landscape split distance default to the maximum.

Motivation & Context

Fixes #880

Changes Made

  • RichInputConnection.commitText: in web editors, a one-character commit that replaces the active composition is sent as setComposingText + finishComposingText. Chromium (Brave) turns a one-character commitText into a synthetic key press inserted next to the composition, so "a" + space became "aa ".
  • InputView.navPadding: when the IME's own navigation bar frame is visible, measure the overlap against its on-screen position instead of the screen bottom. On the OnePlus Pad 3 the IME window ends above the taskbar, so the old measure gave 0 and the toolbar-only bar sat under the back button and handle.
  • Defaults.PREF_SPLIT_SPACER_SCALE: landscape default is now 2.0 (slider maximum). Users who never moved the slider get the new value.

Verification & Testing

  • Build compiles cleanly via ./gradlew :app:assembleStandardDebug
  • Tested on device / emulator: Brave textarea with hardware key events (y, i -> I, on, z. all correct; DOM events confirm no extra insert). Taskbar density (wm density 240): padding unchanged at 84 px.
  • Verified zero typing latency impact on the input path (extra branch only for single-character commits in web editors)
  • Checked for regressions across light and dark themes
  • InputLogicTest passes.
  • Not verified: the OnePlus window layout itself (needs the reporter), the "hadd" case, Chromium fields not detected as web editors.

Guidelines Checklist

  • This PR addresses a single focused concern. (three small fixes from the same issue, one commit each)
  • Follows coding guidelines in CONTRIBUTING.md.
  • Does not add unnecessary dependencies or binary blobs.
  • No em dashes used in comments, descriptions, or documentation.

Chromium turns a one-character commitText into a synthetic key press that is inserted next to the active composition instead of replacing it, so a single letter followed by space became "aa " in Brave. In web editors, replace the composition with setComposingText and finish it instead. Refs #880
…ve the taskbar

On tablets with a taskbar (OnePlus Pad 3) the IME window ends above the screen bottom while its own navigation bar is still drawn inside it, so the screen-based overlap was 0 and the toolbar-only bar sat under the back button and handle. Measure against the navigation bar frame's position instead. Refs #880
@LeanBitLab
LeanBitLab merged commit 0412082 into main Nov 20, 2026
1 check passed
@LeanBitLab
LeanBitLab deleted the fix/880-brave-single-letter-taskbar branch November 20, 2026 17:10
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.

[Bug]: When using a physical keyboard single letters get duplicated when using the space bar or the cursor jumps to the left of the letter.

1 participant