Skip to content

Commit dcec2ed

Browse files
Bug(123): Resolved the NumberPad key pressing issue in SfOtpInput Control on Windows
1 parent 9b9dcbd commit dcec2ed

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)