Skip to content

Commit 75ae4e7

Browse files
Merge pull request #397 from syncfusion/Fixed_NumberPad_Issue
Update the NumberPad key handling in SfOtpInput Control on Windows
2 parents 9b9dcbd + dcec2ed commit 75ae4e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

maui/src/OtpInput/SfOtpInput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2164,7 +2164,7 @@ void OnKeyDown(object sender, Microsoft.UI.Xaml.Input.KeyRoutedEventArgs e)
21642164

21652165
default:
21662166
if ((e.Key >= Windows.System.VirtualKey.A && e.Key <= Windows.System.VirtualKey.Z) ||
2167-
(e.Key >= Windows.System.VirtualKey.Number0 && e.Key <= Windows.System.VirtualKey.Number9))
2167+
(e.Key >= Windows.System.VirtualKey.Number0 && e.Key <= Windows.System.VirtualKey.Number9) || (e.Key >= Windows.System.VirtualKey.NumberPad0 && e.Key <= Windows.System.VirtualKey.NumberPad9))
21682168
{
21692169
string text = e.Key.ToString();
21702170
HandleKeyPress(text);

0 commit comments

Comments
 (0)