Repository navigation
Floating bar: the structures of the selection as the mini toolbar of Word [no-new-version] - #62
Merged
Merged
Conversation
|
Pre-release NuGet package of 8dd3186. Updated on every push, deleted when this PR is closed. |
…Word [no-new-version] The bar of the structures opened for every selection and stayed under the equation, over what is under the editor (the buttons of the demo). In MathEditorView, for every toolkit: it opens only for a selection made with the pointer, when the button is released (not for Shift+arrows nor Ctrl+A), and closes when the pointer goes away from the selection, leaves the control elsewhere than towards the bar, or leaves the bar (PointerExited, QuickBarPointerExited). The completions and the commands of tables are as they were. On Windows Forms the bar opens over the equation where there is no room under it on the screen, as the popups of WPF and Avalonia do. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SyVioB8cEKzWWZ7KQGzLfe
simonebortolin
force-pushed
the
ccr-b9b58be6-g7nugv-quickbar
branch
from
November 14, 2026 22:35
21cca8c to
8dd3186
Compare
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.
Stacked on #61.
When the selection was at the bottom of the editor, the floating bar opened under the equation and covered whatever lay under the editor. In the Avalonia demo it covered the Copy, Paste and Number buttons, so Build down with a selection could not be tested cleanly.
Change
The fix is in
MathEditorView(Rendering), so it holds for Avalonia, WPF, Windows Forms and Uno alike. The structures of the selection now behave like Word's mini toolbar:Opens only for a pointer selection: the bar appears when the button is released after selecting with the pointer. A selection made with Shift+arrows, Ctrl+A or Select all opens no bar.
Closes when the pointer goes away:
PointerMoved);PointerExited, new);QuickBarPointerExited, new).Once closed, the bar stays closed until the next pointer selection.
Unchanged: the completions (
\alp→\alpha, used from the keyboard) and the table commands.Windows Forms: the bar opens above the equation when there is no room under it on the screen. The popups of WPF and Avalonia already flip by themselves.
The controls wire the new calls through events (
PointerExited/MouseLeaveof the editor and of the bar), so their public API does not change. The Rendering API gainsPointerExited(double, double)andQuickBarPointerExited().Tests
StructuresForTheSelectiontests of WPF, Windows Forms and Uno now select with the pointer: press at the start, drag to the end, release.Generated by Claude Code