-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Android] SearchHandler.Focused event never fires #24670
Copy link
Copy link
Closed
Labels
area-controls-shellShell Navigation, Routes, Tabs, FlyoutShell Navigation, Routes, Tabs, Flyoutplatform/androids/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
The Focused event for Shell.SearchHandler does not fire on selecting it, even though the keyboard shows up.
Steps to Reproduce
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MauiApp1.NewPage1"
Title="NewPage1">
<Shell.SearchHandler>
<SearchHandler
Focused="SearchHandler_Focused"
Placeholder="Click to focus.." />
</Shell.SearchHandler>
<VerticalStackLayout>
<Label
Text="Welcome to .NET MAUI!"
VerticalOptions="Center"
HorizontalOptions="Center" />
</VerticalStackLayout>
</ContentPage>namespace MauiApp1;
public partial class NewPage1 : ContentPage
{
public NewPage1()
{
InitializeComponent();
}
private void SearchHandler_Focused(object sender, EventArgs e)
{
// Set a breakpoint
}
}SearchHandler_Focused is never invoked on tapping on the SearchHandler.
Link to public reproduction project repository
No response
Version with bug
8.0.80 SR8
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No workaround.
Relevant log output
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-controls-shellShell Navigation, Routes, Tabs, FlyoutShell Navigation, Routes, Tabs, Flyoutplatform/androids/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done