question

MarkHuisinga-4205 avatar image
0 Votes"
MarkHuisinga-4205 asked ·

Input lag in textbox

We have a mobile sales application which is primarily used on a tablet. Our customers use this to enter orders while en route at various customers.
Input is done by typing on the onscreen keyboard in various fields (itemcode, quantity, price etc.)
Sometimes during order entry we notice a delay between pressing a key on the on screen keyboard and seeing it in the textbox. So for example the customer enters 'RRN' but only 'RR' is showing in te textbox. As soon as they press N again (or any other key) the lagging key is also shown, so the textbox now reads 'RRNN'. It is also possible to wait for the key to show up by itself but that can take up to 10seconds.

We trap key events using the CoreWindow.Dispatcher.AcceleratorKeyActivated

As you can imagine this is very frustrating for our customers.

Any ideas ?

Thanks, Mark

windows-uwp-xaml
· 10
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What are you doing in the CoreWindow.Dispatcher.AcceleratorKeyActivated event? And can you please provide a simple sample that can be reproduced this input delay issue?

0 Votes 0 ·

I have created a sample project that can be used to reproduce the problem. How do I get this project to you ?

0 Votes 0 ·

You can upload the sample to github or oneDrive, etc where we can download it.

0 Votes 0 ·
Show more comments

1 Answer

SteveWood-4261 avatar image
0 Votes"
SteveWood-4261 answered ·

When a TextBox has focus it traps key events for you. Just add event handlers for the PreviewKeyDown and PreviewKeyUp events.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.