Maui icon indicating copy to clipboard operation
Maui copied to clipboard

[BUG] MaskedBehaviour change keyboard

Open DanielSCBO opened this issue 9 months ago • 0 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

  • [x] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug

Current Behavior

Hello,

I'm using MaskedBehavior to input a license plate, the mask is XX-XX-XX

When I put, for example, AA-44-AA, the keyboard changes to text when I'm putting numbers.

Attached I include a video demonstrating

https://github.com/user-attachments/assets/12a08678-f1cf-42d3-956a-0579091b2da4

Expected Behavior

Function how entry when there is no mask

Steps To Reproduce

  1. Put entry with this XAML
       <Entry TextTransform="Uppercase" Placeholder="With Mask">
           <Entry.Behaviors>
               <Toolkit:MaskedBehavior Mask="XX-XX-XX" />
           </Entry.Behaviors>
       </Entry>
  1. Start writing A then A then 1
  2. The keyboard automatically changes the type

Link to public reproduction project repository

https://github.com/DanielSCBO/MaskedBehaviourKeyboardBug

Environment

- .NET MAUI CommunityToolkit: 9.1.1
- OS: Android
- .NET MAUI: 8.0.100

Anything else?

No response

DanielSCBO avatar Jan 28 '25 18:01 DanielSCBO