Skip to content
This repository has been archived by the owner on Dec 11, 2017. It is now read-only.

When a sound is played, current cursor focus is lost on the page #24

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Does the issue occur in "quirks mode", "standards mode" or both? If you
don't know, does your HTML page contains a DOCTYPE declaration?

Yes, contains DOCTYPE declaration.

What version of GWT are you using? 1.4.60? 2.0.4? Other?

2.3.3

What version of the gwt-voices jar file or library file are you using?

2.1.2

What operating system(s) are you using? Windows? Linux? Mac?

Windows

Does the issue occur in web mode, development mode (formerly "hosted
mode"), both or don't know?

both

What browser(s) do you use? Chrome, Firefox, IE, Safari, other?

Chrome

What is the browser version (if you know) from Help->About?

14.0

What steps will reproduce the problem? Please attach sample code if you
can.
1. Create a new sound controller using: 

private static SoundController soundController = new SoundController();

2. Create a new sound using:

private static Sound msgSound = 
soundController.createSound(Sound.MIME_TYPE_AUDIO_BASIC, 
GWT.getModuleBaseURL()+"sound/msg.wav");

3.Play the sound using msgSound.play();

What is the expected output? What do you see instead?

I expect the sound to play, which it does, but on my current page the focus 
will be lost from whatever element that I currently have the focus on. For 
instance if I have the cursor in a text box on the page and the sound is 
played, I hear the sound, but the cursor is no longer in my text box. Somehow 
when the sound is played it takes the cursor focus to some unknown place.

Do you have a workaround?

Only workaround is to not play the sound.

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 5 Oct 2011 at 4:22

@GoogleCodeExporter
Copy link
Author

I'm finding the browser scrolls to the top every time a sound plays. I assume 
this is the same issue. I will have to find a workaround.

Original comment by [email protected] on 27 May 2013 at 3:39

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant