Skip to content

feat(textbox): Follow native iOS touch text editing - #25619

Merged
ajpinedam merged 22 commits into
unoplatform:masterfrom
ajpinedam:dev/anpi/fix.ios.textbox.touch.editing
Nov 2, 2026
Merged

ajpinedam merged 22 commits into
unoplatform:masterfrom
ajpinedam:dev/anpi/fix.ios.textbox.touch.editing

Conversation

@ajpinedam

@ajpinedam ajpinedam commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue: closes unoplatform/kahua-private#558

PR Type:

✨ Feature

What changed? 🚀

Under TouchSelectionConvention.iOS, touch text editing in the Skia TextBox didn't match a native iOS text field. This PR makes it follow native iOS behaviour. Most of the work was contributed by @jbourque-kahua; the first five commits are his, split into logical steps. The rest are fixes found while reviewing them.

Gestures

  • Tapping the caret or the selection toggles the edit menu. Double-tap selects a word and triple-tap selects the paragraph, even when the finger drifts a little between taps.
  • Holding a finger down for 0.5 s starts a caret drag. Scrolling first doesn't start one. The drag keeps going when the finger leaves the text, including inside a ScrollViewer.

Loupe

  • A magnifier follows caret and handle drags. iOS 17+ uses the system one (UITextLoupeSession). Hosts without one, such as Safari on iPad and iOS before 17, get an Uno-drawn magnifier.
  • Two new switches turn either magnifier off: FeatureConfiguration.TextBox.UseNativeTextLoupe and UseManagedTextLoupe. Both default to true, and both are documented in doc/articles/feature-flags.md.

Edit menu

  • The caret menu gets Select, and Select All now shows the selection handles. Both apply only under the iOS convention; Android is unchanged.
  • On iOS, the menu adds Look Up, Search Web, Share and Scan Text. They are provided through ApiExtensibility from Uno.UI.Runtime.AppleUIKit.

AutoFill

  • InputScope now maps to UITextContentType on the hidden native text field, so iOS can offer AutoFill (email, phone, name, address, URL, …).

WebAssembly on iPad

  • Tapping a TextBox that already has focus no longer dismisses the keyboard.

Fixes on top of the contributed commits

  • The new text-service code is excluded on tvOS, which lacks UIReferenceLibraryViewController and UIActivityViewController.
  • When the system cancels a handle drag, the loupe now ends. Before, the loupe stayed up and the native text field's selection stopped following. This adds ITextSelectionGripperHost.OnGripperPointerLost.
  • The Look Up and Share popovers now have an anchor when the selection has no bounds, instead of throwing on iPad.
  • A touch that never releases on the TextBox no longer starts a caret drag 0.5 s later. That covers a touch the system cancels, and a finger that slides off the box and lifts elsewhere. TextBox and PasswordBox now forward PointerCanceled and PointerExited to stop the hold. The drag also captures the touch that pressed, instead of whichever pointer moved last.
  • The edit menu that waits out the multi-tap window is dropped when a handle is pressed, or when typing changes the caret first.
  • Select All only shows handles under the iOS convention, as the Android convention behaved before this PR.
  • When the system loupe can't start, it isn't retried on every move. It could otherwise appear on top of the Uno-drawn one.
  • Triple-tapping an empty line leaves a caret, instead of selection handles around nothing.
  • Clicking or tapping the empty last line of text that ends in a line break, or below it, puts the caret on that line. UnicodeText.GetIndexAt placed it before the line break, for the mouse too and on every platform, so this one changes shared text hit-testing.
  • The Uno-drawn magnifier lays its copy of the text out like the TextBox, with the alignment the TextBox resolved and in the width its layout used. For right-to-left text in a default-aligned TextBox, it centered about 420 px away from the caret: the TextBox lays aligned text out across its full width, and the copy only got the narrower TextBlock width.
  • Closing the edit menu releases the TextBox. The default menu is shared, and its Look Up, Share and Scan Text actions kept the last TextBox, and its DataContext, alive.
  • Scan Text looks up the native text field when it's tapped, not when the menu opened, since the field can be replaced in between.

Validation

  • CI (first run):
    • The tvOS build passed.
    • On iOS, When_Touch_LongPress_Drags_Caret_Shows_Managed_Loupe_iOS failed (shard 3) because the system loupe takes over there. The test now turns the system loupe off. The other new tests passed on iOS, Android, WebAssembly and tvOS. The shard 0 failures were failing on master too, and have since been fixed or disabled there.
  • Compile:
    • Uno.UI.Runtime.AppleUIKit builds for net10.0-ios26.0, and SamplesApp builds for net10.0-desktop.
  • Runtime, Skia desktop:
    • 35 new Given_TextBox tests.
    • One attempt per test over every Given_TextBox.When_Touch_*, Given_CommandBarFlyout, Given_RichEditBox.When_Touch_*, Given_PasswordBox and gripper test (102 tests): 102/102.
    • The new and changed tests passed 15 iterations each.
    • Every test added for a fix fails without that fix and passes with it.
    • The full Given_TextBox class: everything passes on my machine except When_Multiline_Pointer_Tap and When_Pointer_RightClick_Selection, which fail identically on the base commit there and pass on CI.
    • A larger run over Given_TextBox, Given_TextBlock, Given_UnicodeText, Given_RichEditBox, Given_RichTextBlock, Given_PasswordBox, Given_CommandBarFlyout and the shared-flyout leak tests: 1501 passed, 11 failed. The same run on the previous head also had 11 failures:
      • the same 6 clipboard and local-only failures;
      • 5 touch tests that differ from run to run and pass when run alone.
  • The ScrollViewer flake: When_Touch_Selection_Does_Not_Lock_ScrollViewer_iOS failed intermittently because of this PR.
    • After a double-tap, the menu now opens 500 ms later. When that timer fired after the test had closed the menu, the menu reopened over the drag and the form didn't scroll.
    • Closing the menu early reproduces it every time.
    • The test now waits for the menu to open before closing it.
  • Not yet done: testing on a real iPhone or iPad, natively or in WebAssembly. Scan Text in particular has only been compiled.

Known follow-ups, not in this PR

  • Search Web uses the x-web-search:// URL scheme, which Apple doesn't document.
  • The loupe can flash briefly when a handle is tapped without dragging.
  • OTP isn't mapped for AutoFill, and the content type isn't cleared when InputScope changes during editing.
  • The four new menu labels only exist in English.
  • The tests wait fixed delays rather than for conditions.

PR Checklist ✅

🤖 Generated with Claude Code

@github-actions github-actions Bot added platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform area/skia ✏️ Categorizes an issue or PR as relevant to Skia labels Oct 21, 2026
@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 240635 found UI Test snapshots differences: skia-linux-screenshots: 118, skia-windows-screenshots: 2458

Details
  • skia-linux-screenshots: 118 changed over 2458

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • ClipboardTests.png-dark
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png
    • DynamicFont.png-dark
    • DynamicFont.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_Enumeration.png-dark
    • Examples.png
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • DisplayInformation.png-dark
    • ElementLevelTheme.png-dark
  • skia-windows-screenshots: 2458 changed over 2490

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AnimatedIconPage.png-dark
    • Accessibility_ScreenReader.png
    • AndroidWindowInsets.png-dark
    • AndroidWindowInsets.png
    • AnimatedVisualsTestbedPage.png
    • AppBarButtonWithIconTest.png
    • AppBarToggleButtonTest.png-dark
    • AnimatedIconPage.png
    • AnimatedVisualsTestbedPage.png-dark
    • ApplicationViewMode.png
    • ApplicationViewSizing.png
    • ApplicationViewSizing.png-dark
    • AppBarButtonWithIconTest.png-dark
    • AppBarToggleButtonTest.png
    • AppWindowClosing.png
    • AppWindowFeatures.png-dark
    • AppWindowClosing.png-dark
    • ApplicationViewMode.png-dark
    • Application_DispatcherShutdownMode.png-dark

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 240635 has failed on Uno.UI - CI.

@Xiaoy312 Xiaoy312 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall. The gesture, loupe and flyout changes hang together well, and the follow-ups listed in the description cover the known gaps. A few non-blocking notes are inline, plus two below that have no line to attach to.

Docs: UseNativeTextLoupe and UseManagedTextLoupe are new public switches, but doc/articles/feature-flags.md (which documents the neighbouring DisableNumberPadPopover) doesn't mention them. Worth adding a short entry for each.

Android: TextBoxCore.OnTouchSelectAllFromFlyout also runs under the Android convention, so Select All from a touch flyout now shows handles and reopens the menu there too. Is that intended? It's an Android behaviour change in an iOS-scoped PR. Also, PasswordBox (not a TextBox) doesn't get it, because of the target is TextBox check in ExecuteSelectAll.

CI: the iOS Skia shard failure is from three tests that fail on master too (When_Automation_Run_Sample_Keeps_Toolbar_Offset, Given_ShellLayout's theme-cleanup test, When_Shared_EventsSource_Changes_...), so it's unrelated. The new iOS tests that ran on that lane all passed.

@Xiaoy312

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@Xiaoy312

Copy link
Copy Markdown
Contributor

previously blocked on tests that are now fixed/disabled from master:

  • Given_ShellLayout.When_Shell_Reenters_Window_Current_Pane_Destination_Still_Follows_Theme
  • Given_ShellLayout.When_Automation_Run_Sample_Keeps_Toolbar_Offset
  • Given_SkiaIOSAccessibilityElement.When_Shared_EventsSource_Changes_Then_All_Native_Aliases_Are_Invalidated

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 242559 found UI Test snapshots differences: skia-linux-screenshots: 2458, skia-windows-screenshots: 2458

Details
  • skia-linux-screenshots: 2458 changed over 2492

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AndroidWindowInsets.png-dark
    • AppBarButtonTest.png
    • AppBar_KeyBoard.png-dark
    • Application_DispatcherShutdownMode.png
    • AppXamlDefinedResources.png-dark
    • Attributed_text_FontSize_Changing.png
    • AuthenticationBroker_Demo.png
    • AutoBorderStretchwithtopmargin.png-dark
    • AutomationProperties_AutomationId.png
    • AutomationProperties_Landmark.png-dark
    • AutoSizedPathCentered.png
    • AutoSizedTopLeft.png-dark
    • AutoSuggestBox_Keyboard.png-dark
    • AutoSuggestBox_Keyboard.png
    • BadgeNotificationTests.png-dark
    • BadgeNotificationTests.png
    • Basics Pivot Test.png-dark
    • Basics Pivot Test.png
    • BasicThemeResources.png-dark
    • BasicThemeResources.png
  • skia-windows-screenshots: 2458 changed over 2492

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AndroidWindowInsets.png-dark
    • AppBarButtonTest.png
    • AppBar_KeyBoard.png-dark
    • ApplicationViewSpanningRectsPage.png
    • AppWindowPositionAndSize.png-dark
    • AppXamlDefinedResources.png
    • Attributed_text_Simple.png-dark
    • AuthenticationBroker_Demo.png
    • AutoBorderStretchwithtopmargin.png-dark
    • AutoBorderStretchwithtopmargin.png
    • AutomationProperties_StructureAndProps.png
    • AutoSizedPathCentered.png-dark
    • AutoSuggestBox_SoftKeboard.png-dark
    • AutoSuggestBox_SoftKeboard.png
    • Basics_Automated.png-dark
    • Basics_Automated.png
    • BeginTime_MultipleAnimations.png-dark
    • BeginTime_MultipleAnimations.png
    • BitmapIcon_Sizing.png-dark
    • BitmapIcon_Sizing.png

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 242559 has failed on Uno.UI - CI.

Copilot AI balanced review requested due to automatic review settings November 2, 2026 20:00
@ajpinedam

Copy link
Copy Markdown
Contributor Author

@Xiaoy312 thanks for the review. The fixes for your inline notes are pushed (head 3c45059), and each thread has a reply naming its commit. On the notes in the review body:

  • Docs: added in 3c45059, as a "Text magnifier when dragging the caret (iOS)" section under TextBox in doc/articles/feature-flags.md.
  • Android: not intended. 83ac013 limits the Select All handles and the reopened menu to the iOS convention, so Android behaves as it did before this PR.
  • PasswordBox: it still doesn't get handles after Select All, because of the target is TextBox check. I left that as is, since nothing in this PR changes PasswordBox selection. Would you rather it matched TextBox here?
  • CI: the iOS lane also had one failure from this PR, on shard 3: When_Touch_LongPress_Drags_Caret_Shows_Managed_Loupe_iOS. On iOS the system loupe takes over, so the managed one never shows. 73a24bf turns the system loupe off in that test. Your 10-30 rerun failed on it again only because it ran the old head.

Your approval was on 6cbe7fa, so the 11 new commits haven't had a review yet.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved issues cause incorrect selection on trailing empty lines, misaligned magnification for default-aligned right-to-left text, and retention of the last TextBox and its DataContext after the shared flyout closes.

3 open issues
What changed in this PR

This PR brings Skia TextBox touch editing closer to native iOS behavior, including gestures, magnification, edit-menu services, and AutoFill. It also preserves keyboard focus when tapping an already-focused field in WebAssembly.

Changes:

  • Adds iOS-style caret and selection gestures with native and managed magnifiers.
  • Extends touch edit menus and maps input scopes to iOS AutoFill content types.
  • Adds runtime regression tests, pointer-cancellation cleanup, and magnifier configuration documentation.
File Description
src/​Uno.UI/​UI/​Xaml/​Controls/​TextBoxCore/​TextBoxCore.TouchCommands.cs Adds touch selection commands and selection bounds.
src/​Uno.UI/​UI/​Xaml/​Controls/​TextBoxCore/​TextBoxCore.pointers.cs Implements iOS tap, hold, and caret-drag behavior.
src/​Uno.UI/​UI/​Xaml/​Controls/​TextBoxCore/​TextBoxCore.Loupe.cs Coordinates native and managed magnifiers.
src/​Uno.UI/​UI/​Xaml/​Controls/​TextBoxCore/​TextBoxCore.Input.cs Integrates magnifier cleanup and handle interactions.
src/​Uno.UI/​UI/​Xaml/​Controls/​TextBox/​TextBox.Properties.cs Exposes managed magnifier state for tests.
src/​Uno.UI/​UI/​Xaml/​Controls/​TextBox/​TextBox.Overrides.cs Forwards pointer cancellation to the core.
src/​Uno.UI/​UI/​Xaml/​Controls/​TextBox/​TextBox.cs Forwards pointer exits to cancel pending holds.
src/​Uno.UI/​UI/​Xaml/​Controls/​TextBox/​Extensions/​ITextCommandBarFlyoutCommandsExtension.cs Defines platform-provided edit-menu commands.
src/​Uno.UI/​UI/​Xaml/​Controls/​TextBox/​Extensions/​INativeTextLoupeExtension.cs Defines the native magnifier interface.
src/​Uno.UI/​UI/​Xaml/​Controls/​TextBlock/​TextBlock.cs Implements the added gripper lifecycle callback.
src/​Uno.UI/​UI/​Xaml/​Controls/​RichEditBox/​RichEditBox.uno.cs Implements the added gripper lifecycle callback.
src/​Uno.UI/​UI/​Xaml/​Controls/​Primitives/​TextSelectionGripperPresenter.cs Notifies hosts when grippers lose their pointers.
src/​Uno.UI/​UI/​Xaml/​Controls/​Primitives/​TextBoxTouchLoupe.cs Provides the managed magnifier fallback.
src/​Uno.UI/​UI/​Xaml/​Controls/​PasswordBox/​PasswordBox.Overrides.cs Forwards pointer cancellation to the shared core.
src/​Uno.UI/​UI/​Xaml/​Controls/​PasswordBox/​PasswordBox.cs Forwards pointer exits to the shared core.
src/​Uno.UI/​UI/​Xaml/​Controls/​CommandBarFlyout/​TextCommandBarFlyout.Uno.cs Adds Select and platform command handling.
src/​Uno.UI/​UI/​Xaml/​Controls/​CommandBarFlyout/​TextCommandBarFlyout.mux.cs Integrates touch commands and Select All handles.
src/​Uno.UI/​UI/​Xaml/​Controls/​CommandBarFlyout/​TextCommandBarFlyout.h.mux.cs Adds the Select command identifier.
src/​Uno.UI/​UI/​Xaml/​Controls/​CommandBarFlyout/​Strings/​en-us/​Resources.resw Adds English edit-menu labels.
src/​Uno.UI/​Helpers/​WinUI/​ResourceAccessor.ResourceKeys.cs Adds resource keys for new commands.
src/​Uno.UI/​FeatureConfiguration.cs Adds native and managed magnifier switches.
src/​Uno.UI.RuntimeTests/​Microsoft/​UI/​Xaml/​Controls/​Given_TextBox.skia.cs Adds gesture, menu, and magnifier regression tests.
src/​Uno.UI.Runtime.WebAssembly.Browser/​ts/​Runtime/​BrowserInvisibleTextBoxViewExtension.ts Guards focused inputs against trailing compatibility clicks.
src/​Uno.UI.Runtime.AppleUIKit/​UI/​Xaml/​Controls/​TextBox/​InvisibleTextBoxViewExtension.cs Connects native magnification and AutoFill.
src/​Uno.UI.Runtime.AppleUIKit/​UI/​Xaml/​Controls/​TextBox/​InvisibleTextBoxLoupe.cs Wraps iOS system magnifier sessions.
src/​Uno.UI.Runtime.AppleUIKit/​UI/​Xaml/​Controls/​TextBox/​InputScopeHelper.UIKit.cs Maps input scopes to native content types.
src/​Uno.UI.Runtime.AppleUIKit/​UI/​Xaml/​Controls/​TextBox/​IInvisibleTextBoxView.cs Exposes the native text content type.
src/​Uno.UI.Runtime.AppleUIKit/​UI/​Xaml/​Controls/​TextBox/​AppleUIKitTextFlyoutCommands.cs Implements iOS text services and anchored popovers.
src/​Uno.UI.Runtime.AppleUIKit/​Hosting/​ExtensionsRegistrar.cs Registers iOS text services outside tvOS.
doc/​articles/​feature-flags.md Documents magnifier configuration switches.

Review effort: Balanced

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 242958 found UI Test snapshots differences: skia-linux-screenshots: 2458, skia-windows-screenshots: 2458

Details
  • skia-linux-screenshots: 2458 changed over 2492

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AndroidWindowInsets.png-dark
    • AnimatedVisualsTestbedPage.png-dark
    • ApplicationViewSizing.png-dark
    • Application_DispatcherShutdownMode.png-dark
    • AppWindowPresenters.png-dark
    • AppXamlDefinedResources.png-dark
    • Arrange_Performance01.png
    • Attributed_text_Supserscript.png-dark
    • AutoBorderStretchwithbottommargin.png
    • AutoBorderStretchwithleftmargin.png-dark
    • AutomationProperties_Name.png-dark
    • AutomationProperties_Name.png
    • AutoSuggestBox_Description.png-dark
    • AutoSuggestBox_Description.png
    • BadgeNotificationTests.png-dark
    • BadgeNotificationTests.png
    • BasicAutoSuggestBox.png-dark
    • BasicAutoSuggestBox.png
    • BasicThemeResources.png-dark
    • BasicThemeResources.png
  • skia-windows-screenshots: 2458 changed over 2492

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedIconPage.png-dark
    • AnimatedVisualsTestbedPage.png-dark
    • AppBarButtonTest.png-dark
    • AppBar_KeyBoard.png-dark
    • ApplicationViewSpanningRectsPage.png-dark
    • AppWindowFeatures.png-dark
    • AppWindowTitleBar Properties.png-dark
    • Arrange_Performance01.png-dark
    • Attributed_text_Supserscript.png-dark
    • Attributed_text_Supserscript.png
    • AutomationPropertiesExtensions_Role.png-dark
    • AutomationPropertiesExtensions_Role.png
    • AutoSuggestBox_Icons.png-dark
    • AutoSuggestBox_Icons.png
    • BadgeNotificationTests.png-dark
    • BadgeNotificationTests.png
    • BasicEnability.png-dark
    • BasicEnability.png
    • Battery.png-dark
    • Battery.png

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 242988 found UI Test snapshots differences: skia-linux-screenshots: 2458, skia-windows-screenshots: 2458

Details
  • skia-linux-screenshots: 2458 changed over 2492

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AndroidWindowInsets.png-dark
    • AppBarButtonWithIconTest.png-dark
    • AppBar_KeyBoard.png-dark
    • ApplicationViewSpanningRectsPage.png-dark
    • AppWindowFeatures.png-dark
    • AppWindowTitleBar Properties.png-dark
    • Arrange_Performance01.png
    • Attributed_text_Supserscript.png
    • AutoBorderStretchwithleftmargin.png-dark
    • AutoBorderStretchwithleftmargin.png
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_StructureAndProps.png
    • BackGesture.png-dark
    • BackGesture.png
    • Basics Pivot Test.png-dark
    • Basics Pivot Test.png
    • Battery.png-dark
    • Battery.png
    • BeginTime_MultipleAnimations.png-dark
    • BeginTime_MultipleAnimations.png
  • skia-windows-screenshots: 2458 changed over 2492

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedIconPage.png-dark
    • AnimatedVisualsTestbedPage.png-dark
    • AppBarButtonWithIconTest.png
    • ApplicationViewMode.png
    • AppWindowFeatures.png
    • AppWindowTitleBar Properties.png-dark
    • Arrange_Performance01.png
    • Attributed_text_Supserscript.png-dark
    • AutoBorderStretchwithbottommargin.png
    • AutoBorderStretchwithleftmargin.png-dark
    • AutomationProperties_Landmark.png
    • AutomationProperties_Name.png-dark
    • AutoSuggestBox_Description.png-dark
    • AutoSuggestBox_Description.png
    • BackGesture.png-dark
    • BackGesture.png
    • Basics.png-dark
    • Basics.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png

@ajpinedam
ajpinedam merged commit f2d1c6e into unoplatform:master Nov 2, 2026
50 checks passed
@ajpinedam

Copy link
Copy Markdown
Contributor Author

@Mergifyio backport servicing/6.8

@mergify

mergify Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

backport servicing/6.8

✅ Backports have been created

Details

Cherry-pick of 9c46cf5 has failed:

On branch mergify/bp/servicing/6.8/pr-25619
Your branch is ahead of 'origin/servicing/6.8' by 1 commit.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit 9c46cf5.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   src/Uno.UI.Runtime.Skia.AppleUIKit/UI/Xaml/Controls/TextBox/IInvisibleTextBoxView.cs
	modified:   src/Uno.UI/UI/Xaml/Controls/TextBox/InputScopeHelper.UIKit.cs

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   src/Uno.UI.Runtime.Skia.AppleUIKit/UI/Xaml/Controls/TextBox/InvisibleTextBoxViewExtension.cs

Cherry-pick of 56a23aa has failed:

On branch mergify/bp/servicing/6.8/pr-25619
Your branch is ahead of 'origin/servicing/6.8' by 2 commits.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit 56a23aa.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   src/Uno.UI.Runtime.Skia.AppleUIKit/UI/Xaml/Controls/TextBox/InvisibleTextBoxViewExtension.cs
	modified:   src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBox.skia.cs
	new file:   src/Uno.UI/UI/Xaml/Controls/Primitives/TextBoxTouchLoupe.cs
	new file:   src/Uno.UI/UI/Xaml/Controls/TextBox/Extensions/INativeTextLoupeExtension.cs
	modified:   src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.pointers.skia.cs

Unmerged paths:
  (use "git add/rm <file>..." as appropriate to mark resolution)
	added by them:   src/Uno.UI.Runtime.Skia.AppleUIKit/UI/Xaml/Controls/TextBox/InvisibleTextBoxLoupe.cs
	both modified:   src/Uno.UI/FeatureConfiguration.cs
	deleted by us:   src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.Properties.cs
	both modified:   src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.skia.cs
	added by them:   src/Uno.UI/UI/Xaml/Controls/TextBox/TextBoxCore.Loupe.cs

Cherry-pick of 138c921 has failed:

On branch mergify/bp/servicing/6.8/pr-25619
Your branch is ahead of 'origin/servicing/6.8' by 3 commits.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit 138c921.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBox.skia.cs

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.pointers.skia.cs
	both modified:   src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.skia.cs

Cherry-pick of 73c77a0 has failed:

On branch mergify/bp/servicing/6.8/pr-25619
Your branch is ahead of 'origin/servicing/6.8' by 4 commits.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit 73c77a0.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   src/Uno.UI.Runtime.Skia.AppleUIKit/Hosting/ExtensionsRegistrar.cs
	modified:   src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBox.skia.cs
	modified:   src/Uno.UI/Helpers/WinUI/ResourceAccessor.ResourceKeys.cs
	modified:   src/Uno.UI/UI/Xaml/Controls/CommandBarFlyout/Strings/en-us/Resources.resw
	new file:   src/Uno.UI/UI/Xaml/Controls/CommandBarFlyout/TextCommandBarFlyout.Uno.cs
	modified:   src/Uno.UI/UI/Xaml/Controls/CommandBarFlyout/TextCommandBarFlyout.h.mux.cs
	new file:   src/Uno.UI/UI/Xaml/Controls/TextBox/Extensions/ITextCommandBarFlyoutCommandsExtension.cs

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	added by them:   src/Uno.UI.Runtime.Skia.AppleUIKit/UI/Xaml/Controls/TextBox/AppleUIKitTextFlyoutCommands.cs
	both modified:   src/Uno.UI.Runtime.Skia.AppleUIKit/UI/Xaml/Controls/TextBox/InvisibleTextBoxViewExtension.cs
	both modified:   src/Uno.UI/UI/Xaml/Controls/CommandBarFlyout/TextCommandBarFlyout.mux.cs
	added by them:   src/Uno.UI/UI/Xaml/Controls/TextBox/TextBoxCore.TouchCommands.cs

Cherry-pick of 21d7657 has failed:

On branch mergify/bp/servicing/6.8/pr-25619
Your branch is ahead of 'origin/servicing/6.8' by 6 commits.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit 21d7657.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBox.skia.cs
	modified:   src/Uno.UI/UI/Xaml/Controls/Primitives/TextSelectionGripperPresenter.skia.cs

Unmerged paths:
  (use "git add/rm <file>..." as appropriate to mark resolution)
	deleted by us:   src/Uno.UI/UI/Xaml/Controls/RichEditBox/RichEditBox.uno.cs
	both modified:   src/Uno.UI/UI/Xaml/Controls/TextBlock/TextBlock.cs
	deleted by us:   src/Uno.UI/UI/Xaml/Controls/TextBoxCore/TextBoxCore.Input.cs

Cherry-pick of e286605 has failed:

On branch mergify/bp/servicing/6.8/pr-25619
Your branch is ahead of 'origin/servicing/6.8' by 10 commits.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit e286605.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBox.skia.cs
	modified:   src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.pointers.skia.cs

Unmerged paths:
  (use "git add/rm <file>..." as appropriate to mark resolution)
	deleted by us:   src/Uno.UI/UI/Xaml/Controls/PasswordBox/PasswordBox.Overrides.cs
	deleted by us:   src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.Overrides.cs

Cherry-pick of 27ebcf0 has failed:

On branch mergify/bp/servicing/6.8/pr-25619
Your branch is ahead of 'origin/servicing/6.8' by 14 commits.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit 27ebcf0.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBox.skia.cs
	modified:   src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.cs
	modified:   src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.pointers.skia.cs

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   src/Uno.UI/UI/Xaml/Controls/PasswordBox/PasswordBox.cs

Cherry-pick of 7fc4304 has failed:

On branch mergify/bp/servicing/6.8/pr-25619
Your branch is ahead of 'origin/servicing/6.8' by 16 commits.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit 7fc4304.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   src/Uno.UI/UI/Xaml/Controls/CommandBarFlyout/TextCommandBarFlyout.mux.cs

no changes added to commit (use "git add" and/or "git commit -a")

Cherry-pick of 6d1023e has failed:

On branch mergify/bp/servicing/6.8/pr-25619
Your branch is ahead of 'origin/servicing/6.8' by 20 commits.
  (use "git push" to publish your local commits)

You are currently cherry-picking commit 6d1023e.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBox.skia.cs
	modified:   src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.pointers.skia.cs

Unmerged paths:
  (use "git add/rm <file>..." as appropriate to mark resolution)
	deleted by us:   src/Uno.UI/UI/Xaml/Documents/UnicodeText.cs

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

ajpinedam added a commit that referenced this pull request Nov 4, 2026
…r-25619

feat(textbox): Follow native iOS touch text editing (backport #25619)
agneszitte added a commit that referenced this pull request Nov 4, 2026
…orts-6.7

fix(input): Tap order, iOS touch text editing and Android browser IME (backport #25818, #25619, #25804)
mikernet added a commit to mikernet/uno that referenced this pull request Nov 12, 2026
…ress-context-flyout-22229

Conflicts with the iOS touch editing work (unoplatform#25619) and the deferred release
handling (unoplatform#25818):
- TextBoxCore.pointers.cs: the hold handled in OnHolding now goes through
  master's iOS path (HandleTouchHold_iOS, once per press with the 0.5 s hold
  timer) and Android's ToTouchTextPoint; a release after either is not a tap.
- InputManager.Pointers.Managed.cs: the release stops the delayed context
  menu at the start of OnPointerReleasedCore.
- Given_TextBox.skia.cs: both new iOS tests kept.
mikernet added a commit to Singulink/uno that referenced this pull request Nov 14, 2026
Takes Uno's servicing/6.8 from 6951c2c up to 5254ace (42 pull
requests). Conflicts, by area:

IME and TextBox (unoplatform#25984, backport of unoplatform#25804; unoplatform#25952, backport of unoplatform#25619;
unoplatform#25976, backport of unoplatform#25818)
- Takes upstream's composition design (unoplatform#25804): the browser's input is
  the source of truth for the text, compositions included. This drops
  the composition parts of the unoplatform#24502 port (90746b8): its
  TypeScript composition handling, the StartIndex/TextChangePending
  event arguments, the IsReadOnly forwarding to the hidden input, and
  its Given_TextBox.BrowserSoftKeyboard tests.
- Keeps the non-IME browser fixes on top of it, in the form their
  master pull requests have on unoplatform#25804: Enter raised once per press and
  tracked by key code (unoplatform#25174, with Given_TextBox.BrowserEnterKey from
  master in place of the Enter tests that lived in the dropped file),
  the iOS refocus on tap (unoplatform#25185), pastes without text and isIOS from
  BrowserInputHelper.
- Moves the unoplatform#26005 MaxLength fixes onto unoplatform#25804's native input path, as
  master has them: a refused browser edit keeps the TextBox's selection,
  TextBoxView.UpdateTextFromNative reports whether the edit went in, and
  the IME keeps its range on the applied text (master be85699, which
  d226897 had ported onto the unoplatform#24502 IME). Adds that commit's browser
  and platform-applied IME tests.
- TextBox.pointers.skia.cs: upstream's file (unoplatform#25619 iOS touch editing,
  unoplatform#25818, unoplatform#25804), with the unoplatform#25126 port (the hold acts when it starts,
  a touch right-tap keeps the caret) in the form master's unoplatform#25126 branch
  has it on unoplatform#25619, including focusing before the iOS hold timer acts
  and its iOS not-focusable test.

Pointers (unoplatform#25976, backport of unoplatform#25818)
- Tapped and RightTapped are raised once the PointerReleased bubbled
  (unoplatform#25818), with the unoplatform#25732 port's window coordinates (2-argument
  routed event args, RawPosition for ContextRequested), as master's
  unoplatform#25732 branch has them.
- The release wrapper of unoplatform#25818 keeps the unoplatform#25126 port's
  StopContextMenuTimer at the start of the release.

DependencyObject (unoplatform#26142, backport of unoplatform#26123)
- Takes upstream, then the code of unoplatform#25839 (97a2f17), which replaces
  this branch's unoplatform#25102 ports (800247f, be41da6, fd40bf9,
  7546379). DependencyObjectStore.Binder.cs, .alc.cs,
  Application.Alc.cs, ResourceDictionary.alc.cs and their tests now
  match unoplatform#25839; this drops 800247f's own
  SingleParentNonFE_Parent_Removes_Value_Then_Next_Parent_Starts_Clean
  test, which unoplatform#25839 doesn't have.

Imaging (unoplatform#25597, unoplatform#25915, unoplatform#25911, unoplatform#25897)
- Keeps this branch's side: it has the later forms of these fixes
  (unoplatform#25124, unoplatform#25559, unoplatform#25633 and unoplatform#26370 ports), where upstream has the
  6.8-only unoplatform#25597 design and earlier snapshots. Upstream's shared
  download, IgnoreImageCache and failed-load fixes are covered by
  SharedImageDecode. Adds upstream's When_Source_Outlives_Brushes test.

ToolTip (unoplatform#26098, backport of unoplatform#25137 and unoplatform#26096)
- Keeps this branch's unoplatform#25137 port and adds unoplatform#26096 in master's form: the
  service releases only a ToolTip it opened, and leaves one the app
  opened during the show delay to the app. Keeps both sides' tests.

Flyout (unoplatform#26062, backport of unoplatform#26060)
- This branch had the same commits already; keeps the "Keep
  non-resizable flyouts in window" port and its tests.

Also removes a helper pair in Given_AccessibleTextBox that both sides
added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/skia ✏️ Categorizes an issue or PR as relevant to Skia kind/documentation platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform platform/wasm 🌐 Categorizes an issue or PR as relevant to the WebAssembly platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants