[SOLVED] Key presses capture - Result not the same on Final version

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
binaryfish
Posts: 11
Joined: Fri Oct 23, 2015 3:08 am

[SOLVED] Key presses capture - Result not the same on Final version

Postby binaryfish » Mon Nov 02, 2015 11:27 pm

Hi

I need to capture key presses at the root level without a input element such as TextBox. So, I have a TextBox with Opacity = 0 and I set it to focus whether the user taps the screen (if anyone have a better solution please let me know).

Anyway, everything works fine when I run the app in Intermediate version. I tap the screen and press the keyboard the keypresses are captured. If I switch to final version the keypresses are not captured.

Here is the xaml code:

Code: Select all

<Canvas x:Name="CnvGrid" Background="Green" PointerPressed="CnvGrid_PointerPressed" >
   <TextBox x:Name="TbxGrid" TextChanged="TbxGrid_TextChanged" Width="1" Height="1" IsHitTestVisible="False" Opacity="0" />
</Canvas>


Thanks

Gavin

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: Key presses capture - Result not the same on Final version

Postby JS-Support @Userware » Fri Nov 06, 2015 10:04 am

Thanks Gavin. We are going to look into it and keep you updated as soon as possible.

Regards,
JS-Support

binaryfish
Posts: 11
Joined: Fri Oct 23, 2015 3:08 am

Re: Key presses capture - Result not the same on Final version

Postby binaryfish » Wed Jan 27, 2016 9:40 pm

JS-Support wrote:Thanks Gavin. We are going to look into it and keep you updated as soon as possible.


Any progress as I installed the latest Beta 7 and I still cannot capture keypress on the browser?

Gavin

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: Key presses capture - Result not the same on Final version

Postby JS-Support @Userware » Mon Feb 01, 2016 9:54 am

Hi Gavin,

Sorry it didn't make it for the Beta 7 release.

We have scheduled this bug fix for 1st half of 2016. I will let you know as soon as we deal with it.

Thanks a lot,
Regards,
JS-Support

binaryfish
Posts: 11
Joined: Fri Oct 23, 2015 3:08 am

Re: Key presses capture - Result not the same on Final version

Postby binaryfish » Sat Apr 30, 2016 1:06 am

Hi

Downloaded and installed Beta 8, problem is still present.

Regards

Gavin

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: Key presses capture - Result not the same on Final version

Postby JS-Support @Userware » Thu May 12, 2016 10:15 am

Hi,

Thanks.

Does the issue happen only with Internet Explorer or also with other browsers such as Chrome or FireFox?

Regards,
JS-Support

binaryfish
Posts: 11
Joined: Fri Oct 23, 2015 3:08 am

Re: Key presses capture - Result not the same on Final version

Postby binaryfish » Sun May 15, 2016 10:04 pm

Hi

It happens on Microsoft Edge, Chrome, and Firefox.

Regards

Gavin

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: Key presses capture - Result not the same on Final version

Postby JS-Support @Userware » Tue May 17, 2016 6:27 am

Thanks.

binaryfish
Posts: 11
Joined: Fri Oct 23, 2015 3:08 am

Re: Key presses capture - Result not the same on Final version

Postby binaryfish » Sun Jul 24, 2016 10:18 pm

Hi

In Beta 9.0 key presses still do not work!

binaryfish
Posts: 11
Joined: Fri Oct 23, 2015 3:08 am

Re: Key presses capture - Result not the same on Final version

Postby binaryfish » Tue Oct 25, 2016 10:06 pm

Hi

Downloaded Beta 10.2 and I still cannot capture key presses from the browser (when I click on RUN IN BROWSER button). Only works in the simulator.

Gavin

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: Key presses capture - Result not the same on Final version

Postby JS-Support @Userware » Fri Nov 04, 2016 8:13 am

Dear Gavin,

This has been fixed in Beta 10.3.

Please note that IE raises the TextChanged event only when the TextBox loses focus. To achieve the desired result, please register to the "KeyDown" event instead.

Here is an example that works fine in Beta 10.3:

XAML:

Code: Select all

<Grid>
    <Canvas x:Name="CnvGrid" Width="100" Height="100" Background="Green"  PointerPressed="CnvGrid_PointerPressed" >
        <TextBox x:Name="TbxGrid" KeyDown="TbxGrid_KeyDown" Width="1" Height="1" IsHitTestVisible="False" Opacity="0" />
    </Canvas>
</Grid>

C#:

Code: Select all

private void CnvGrid_PointerPressed(object sender, PointerRoutedEventArgs e)
{
    TbxGrid.Focus();
}

void TbxGrid_KeyDown(object sender, KeyRoutedEventArgs e)
{
    MessageBox.Show("KeyDown");
}


Thanks.
Regards,
JS-Support


Return to “Bug Reports”

Who is online

Users browsing this forum: Google [Bot] and 25 guests

 

 

cron