Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Virtual keyboard Key press are missed (Read 2332 times)
Manjula
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Location: Canada
Joined: Jul 13th, 2018
Virtual keyboard Key press are missed
Aug 2nd, 2018 at 1:28pm
Print Post  
Hi,

I am trying to run the sample downloaded along with installer in a touch enabled device and when trying to press the keys, sometimes key presses are not captured and miss the key value in the input control.

Any help in this regard is much help

Regards,
Manjula
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3378
Joined: Oct 19th, 2005
Re: Virtual keyboard Key press are missed
Reply #1 - Aug 2nd, 2018 at 6:01pm
Print Post  
Hi,

A received event always sends a key in our code -

Code
Select All
protected override void OnPreviewMouseDown(MouseButtonEventArgs e)
{
    base.OnPreviewMouseDown(e);
    if (e != null)
        key = FindKey(e.OriginalSource as DependencyObject);
    SendKey(key);
    ...
 



Check if something in your application (e.g. container's PreviewMouse/Touch events) isn't preventing further event propagation. Or maybe add a PreviewMouse handler to the topmost window to verify the device registers all touches.

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