Skip to content

Commit a9cee5f

Browse files
NirmalKumarYuvarajjsuarezruiz
authored andcommitted
modified code changes
1 parent fc409d1 commit a9cee5f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Core/src/Platform/Android/MauiPicker.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ public class MauiPicker : MauiPickerBase
1414
public MauiPicker(Context context) : base(context)
1515
{
1616
PickerManager.Init(this);
17-
// To prevent user from entering text when focus is received
18-
KeyListener = null;
1917
}
2018

2119
public override bool OnTouchEvent(MotionEvent? e)

src/Core/src/Platform/Android/PickerManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ static void OnKeyPress(object? sender, AView.KeyEventArgs e)
4242
{
4343
if (!AvailableKeys.Contains(e.KeyCode))
4444
{
45-
e.Handled = false;
45+
//To prevent user from entering text when focus is received
46+
e.Handled = true;
4647
return;
4748
}
4849
e.Handled = true;

0 commit comments

Comments
 (0)