Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic First touch not registered (Read 2668 times)
Harshvir
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 33
Joined: Aug 26th, 2020
First touch not registered
Jun 7th, 2022 at 3:38am
Print Post  
Hi,
I am running into an issue where on a touch screen device, when I am using finger to type in.
The very first click is not sending the Key to the input box, but when I click on that for the second time then it works fine. It happens only once, and then it works normally.
  
Back to top
 
IP Logged
 
Harshvir
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 33
Joined: Aug 26th, 2020
Re: First touch not registered
Reply #1 - Jun 7th, 2022 at 3:59am
Print Post  
Quick note.
The application which is hosting the virtual keyboard is launching at startup and full screen locked app.
Incase it helps to suggest what could more be needed.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 2825
Joined: Oct 19th, 2005
Re: First touch not registered
Reply #2 - Jun 7th, 2022 at 7:05am
Print Post  
Hi,

I could not reproduce lost touch in keyboard's sample projects.

Verify there is a focused control at the time you hit a key for the first time. It could be the OS or WPF consuming the event to activate a child window and bring keyboard focus to first control in tab order, and then next hits send input to focused control as expected.

Also check if there aren't any Preview* event handlers in the WPF panel / window hierarchy setting first touch event as handled before it reaches the keyboard.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Harshvir
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 33
Joined: Aug 26th, 2020
Re: First touch not registered
Reply #3 - Aug 23rd, 2022 at 7:05am
Print Post  
Hi I was just running into this issue again.
If it helps then I would like to mention that the issue happens once we use vertical scroll bar to scroll.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 2825
Joined: Oct 19th, 2005
Re: First touch not registered
Reply #4 - Aug 23rd, 2022 at 10:31am
Print Post  
Hi,

Try setting <ScrollViewer  ... Focusable="False">

When that happens, try also typing from a physical keyboard to verify your expected control has the input focus.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Harshvir
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 33
Joined: Aug 26th, 2020
Re: First touch not registered
Reply #5 - Aug 23rd, 2022 at 9:13pm
Print Post  
Hi Slavcho,
Thanks for the reply, I have already tried the scollbar focusable option but that do not help in solving the problem.
Issue do not happen with system keyboard, it only happens when we scroll a scrollbar by clicking on corner button, and then click input box to focus, and then pressing in app hosted virtual keyboard. Key is not sent for the first time and pressing again works fine.
Even the key do not show highlighting on the first press in virtual keyboard for the first time.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 2825
Joined: Oct 19th, 2005
Re: First touch not registered
Reply #6 - Aug 24th, 2022 at 8:10am
Print Post  
Hi,

Could be some of the elements you mention has captured input events. Try printing AreAnyTouchesCaptured and IsMouseCaptured values for UIElements in your Xaml to verify that.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Harshvir
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 33
Joined: Aug 26th, 2020
Re: First touch not registered
Reply #7 - Sep 10th, 2022 at 12:13am
Print Post  
Hi Slavcho,
I did check, and out text box control do have the focus and I even forced focus to that.
The issue is not with the application not receiving the key.
The issue is with the virtual keyboard not processing first key press sometimes.
I even tried pressing the CAPS lock on virtual keyboard, it did not highlight the keys.

Am I missing something here?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 2825
Joined: Oct 19th, 2005
Re: First touch not registered
Reply #8 - Sep 10th, 2022 at 9:45am
Print Post  
Hi,

Have you checked for captured mouse or touch input? That's very different from keyboard focus and most likely reason as we see it.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint