Repository navigation
fix: Brave single-letter doubling and taskbar overlap in toolbar-only mode (#880) - #881
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 assetComposingText+finishComposingText. Chromium (Brave) turns a one-charactercommitTextinto 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
./gradlew :app:assembleStandardDebugy,i->I,on,z.all correct; DOM events confirm no extra insert). Taskbar density (wm density 240): padding unchanged at 84 px.InputLogicTestpasses.Guidelines Checklist