dotnet / dotnet/maui

Events and Methods Not Triggering for Empty Entry on Mac and iOS

Open
#30,792 2 comments 0 reactions 0 assignees View on GitHub
area-controls-entry has-workaround partner/syncfusion platform/ios platform/macos s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

I am experiencing an issue where events and methods do not trigger for an entry field if the entry is empty. This occurs specifically when the backspace key is pressed on both Mac and iOS platforms.

Sample : [Sample.zip](https://github.com/user-attachments/files/21412479/Sample.zip)

Video : https://github.com/user-attachments/assets/5f7e6d7e-27ff-4248-8994-782a05e2a544

### Steps to Reproduce

1. Open the application on a Mac or iOS device.
2. Navigate to an entry field.
3. Ensure the entry field is empty.
4. Press the backspace key.

### Expected Result:

The KeyDown and KeyUp events, as well as any other relevant events, should be triggered when the backspace key is pressed, even if the entry is empty.

### Actual Result:

The events and methods are not triggering when the entry is empty and the backspace key is pressed.

### Link to public reproduction project repository

_No response_

### Version with bug

10.0.0-preview.4

### Is this a regression from previous behavior?

Not sure, did not test other versions

### Last version that worked well

Unknown/Other

### Affected platforms

iOS, macOS

### Affected platform versions

Mac 15,.0, iOS 12.2

### Did you find any workaround?

No

### Relevant log output

```shell

```

Contributor guide

Open the contributing guide

Research direction

Start by opening the linked Sample.zip and reproducing the empty-entry backspace case on macOS and iOS. Compare the behavior of KeyDown and KeyUp with a non-empty entry; done means those events and other relevant entry events trigger when backspace is pressed on an empty field.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop-dev, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.