Skip to content

Update the NumberPad key handling in SfOtpInput Control on Windows#397

Merged
PaulAndersonS merged 1 commit into
mainfrom
Fixed_NumberPad_Issue
Jun 29, 2026
Merged

Update the NumberPad key handling in SfOtpInput Control on Windows#397
PaulAndersonS merged 1 commit into
mainfrom
Fixed_NumberPad_Issue

Conversation

@TameemAnsari-SF4702

@TameemAnsari-SF4702 TameemAnsari-SF4702 commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Root Cause of the Issue

On Windows, keyboard input handling differentiates between top-row number keys (VirtualKey.Number0–Number9) and numeric keypad keys (VirtualKey.NumberPad0–NumberPad9).
The existing OnKeyDown logic handled only the top-row number keys and did not include NumberPad keys. As a result, inputs from the numeric keypad were ignored, preventing text updates and the triggering of the TextChanged event.

Description of Change

Updated the Windows OnKeyDown event handling logic to include numeric keypad inputs by adding a condition for VirtualKey.NumberPad0–NumberPad9.
This ensures both top-row numbers and NumberPad inputs are processed correctly and passed to the input handling logic.
Code change:
|| (e.Key >= Windows.System.VirtualKey.NumberPad0 && e.Key <= Windows.System.VirtualKey.NumberPad9)

Screenshots

Before:

image

After:

image

@naveenkumar-sanjeevirayan naveenkumar-sanjeevirayan changed the title Bug(123): Resolved the NumberPad key pressing issue in SfOtpInput Control on Windows Resolved the NumberPad key pressing issue in SfOtpInput Control on Windows Jun 29, 2026
@naveenkumar-sanjeevirayan naveenkumar-sanjeevirayan changed the title Resolved the NumberPad key pressing issue in SfOtpInput Control on Windows Update the NumberPad key handling in SfOtpInput Control on Windows Jun 29, 2026
@PaulAndersonS PaulAndersonS merged commit 75ae4e7 into main Jun 29, 2026
@PaulAndersonS PaulAndersonS added this to the v1.0.11 milestone Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants