You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Piotr Kołaczkowski <pk...@gmail.com> on 2012/01/31 11:50:35 UTC

Keyboard events ignored in Google Chrome / Firefox on Ubuntu Linux

Hi,

I encountered a strange bug.

1. When I run the applet in Firefox 9 in Windows, everything works fine.

2. When I run the exactly same applet in Firefox 9 installed in Ubuntu
11.10, it works fine until I click with the mouse somewhere outside of
the applet area, e.g. in the browser's address bar. Then the applet
loses focus and the applet stops receiving keyboard events. Pressing
tab once or twice, so that the applet gets focused again or clicking
on the applet, doesn't help. The keyboard events still go to
/dev/null, although mouse is fine :D. The only thing that works is
fully reloading the applet.

3. The same problem appears in the most recent Google Chrome.

At first I thought there is something wrong with my Java so I
reinstalled JDK. It didn't help. The problem exists either with Oracle
64 bit JDK 6 update 30 or 7 update 2.
I checked some other applets on the web, and... they work perfectly.
E.g. this one: http://www.brainjar.com/java/games/asteroids/. I can
click on the address bar, then click back on the applet, and voila, I
can still control the spaceship with the keyboard.

The I checked Pivot demos and *I am able* to reproduce the problem
with Pivot demos, e.g. the kitchen sink demo. So I came to the
conclusion there must be something in Pivot that makes the focus /
keyboard problem...
Do you have any ideas what could it be and where to look in the code
to debug it?

Best regards,
Piotr

Re: Keyboard events ignored in Google Chrome / Firefox on Ubuntu Linux

Posted by Sandro Martini <sa...@gmail.com>.
Updated the related issue:
https://issues.apache.org/jira/browse/PIVOT-707

For updates, please post there,
Sandro

Re: Keyboard events ignored in Google Chrome / Firefox on Ubuntu Linux

Posted by Chris Bartlett <cb...@gmail.com>.
This is a known issue that came up on the mailing list recently.  I am not
in a position to search the list archive at through moment, but there are
relevant posts there with links to open JIRA issues.

The thing we were missing was a minimal test case and examples of non Pivot
applets that work as expected in all browsers. Hopefully we can now
determine how much of the problem is due to Pivot and how much due to the
OS, browser or JVM.
On Jan 31, 2012 11:35 AM, "Mark Dodgson" <ma...@googlemail.com>
wrote:

> I have the same problem too with the demos, using Ubuntu and Chrome here.
>
> For example clicking on the address bar of chrome to loose focus then
> clicking back on to an edit box I am unable to type anything in the edit
> box. All buttons etc seem to work, just not keyboard entries.
>
> Regards,
>
> doddi
>
> On 31 January 2012 10:50, Piotr Kołaczkowski <pk...@gmail.com> wrote:
>
>> Hi,
>>
>> I encountered a strange bug.
>>
>> 1. When I run the applet in Firefox 9 in Windows, everything works fine.
>>
>> 2. When I run the exactly same applet in Firefox 9 installed in Ubuntu
>> 11.10, it works fine until I click with the mouse somewhere outside of
>> the applet area, e.g. in the browser's address bar. Then the applet
>> loses focus and the applet stops receiving keyboard events. Pressing
>> tab once or twice, so that the applet gets focused again or clicking
>> on the applet, doesn't help. The keyboard events still go to
>> /dev/null, although mouse is fine :D. The only thing that works is
>> fully reloading the applet.
>>
>> 3. The same problem appears in the most recent Google Chrome.
>>
>> At first I thought there is something wrong with my Java so I
>> reinstalled JDK. It didn't help. The problem exists either with Oracle
>> 64 bit JDK 6 update 30 or 7 update 2.
>> I checked some other applets on the web, and... they work perfectly.
>> E.g. this one: http://www.brainjar.com/java/games/asteroids/. I can
>> click on the address bar, then click back on the applet, and voila, I
>> can still control the spaceship with the keyboard.
>>
>> The I checked Pivot demos and *I am able* to reproduce the problem
>> with Pivot demos, e.g. the kitchen sink demo. So I came to the
>> conclusion there must be something in Pivot that makes the focus /
>> keyboard problem...
>> Do you have any ideas what could it be and where to look in the code
>> to debug it?
>>
>> Best regards,
>> Piotr
>>
>
>

Re: Keyboard events ignored in Google Chrome / Firefox on Ubuntu Linux

Posted by Mark Dodgson <ma...@googlemail.com>.
I have the same problem too with the demos, using Ubuntu and Chrome here.

For example clicking on the address bar of chrome to loose focus then
clicking back on to an edit box I am unable to type anything in the edit
box. All buttons etc seem to work, just not keyboard entries.

Regards,

doddi

On 31 January 2012 10:50, Piotr Kołaczkowski <pk...@gmail.com> wrote:

> Hi,
>
> I encountered a strange bug.
>
> 1. When I run the applet in Firefox 9 in Windows, everything works fine.
>
> 2. When I run the exactly same applet in Firefox 9 installed in Ubuntu
> 11.10, it works fine until I click with the mouse somewhere outside of
> the applet area, e.g. in the browser's address bar. Then the applet
> loses focus and the applet stops receiving keyboard events. Pressing
> tab once or twice, so that the applet gets focused again or clicking
> on the applet, doesn't help. The keyboard events still go to
> /dev/null, although mouse is fine :D. The only thing that works is
> fully reloading the applet.
>
> 3. The same problem appears in the most recent Google Chrome.
>
> At first I thought there is something wrong with my Java so I
> reinstalled JDK. It didn't help. The problem exists either with Oracle
> 64 bit JDK 6 update 30 or 7 update 2.
> I checked some other applets on the web, and... they work perfectly.
> E.g. this one: http://www.brainjar.com/java/games/asteroids/. I can
> click on the address bar, then click back on the applet, and voila, I
> can still control the spaceship with the keyboard.
>
> The I checked Pivot demos and *I am able* to reproduce the problem
> with Pivot demos, e.g. the kitchen sink demo. So I came to the
> conclusion there must be something in Pivot that makes the focus /
> keyboard problem...
> Do you have any ideas what could it be and where to look in the code
> to debug it?
>
> Best regards,
> Piotr
>