-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V2: TextField numeric input not working on non-Windows platforms #3540
Comments
This sounds like a bug. But having more information to diagnose would help. Can you check whether NumLock or Scroll Lock is down when trying to type. Sometimes that makes a difference (although it really shouldn't). One thing that would help is to know exactly what the keycode is that is being ignored. You can trap all key events at application level with a global listener (see below) and then look at Application.KeyDown += (s, e) =>
{
// Break point here
}; Another way is to run the 'Keys' scenario in UICatalog on the machines, it logs all key strokes. |
@tznind Thanks for the reply. Following your suggestion, I added a status bar item that logs the key code. On Windows 11 when I execute this, I see D1, D2... for the digits. On Linux (Ubuntu 22.04 running in WSL on Windows 11), the same key codes are logged as 17, 18, 19... I wasn't sure if running in WSL might be causing the issue, so I compiled this on my Mac as well. When executing on the Mac I see the same behaviour, i.e. the digits are logged as 17,18,19. On the Mac I have some additional issues with some other key codes as well. For example, Backspace is logged as 95 on Mac, but interpreted correctly on Linux and Windows. Thoughts? |
I've now also verified this with the Keys example on the Mac. Running the Keys example for the |
@BDisp I can confirm that the fixes work on my Mac and also in Ubuntu 22.04 running in WSL on Windows 11. |
Fixes #3540. V2: Keyboard input not working on Unix platforms
Hello
For V2, when I'm trying to enter numeric input values for a
TextField
on non-Windows platforms, the values are not accepted by the control. Is there some specific setting in V2 that I'm missing? Looking at the changes to theTextField
between V1 and V2, the V2OnProcessKeyDown
contains an additional check around key codes A-Z which is not in the V1ProcessKey
method - not sure if this is the cause of the issue and why it works on WindowsThe text was updated successfully, but these errors were encountered: