Discuss Scratch

Lightnin
Scratcher
1000+ posts

Everyone please star this Chromium bug

Chromium has had a bad bug for a while that causes the browser to get keypresses even when Flash has focus.

Everytime I go to play a game in Scratch 2.0, I hit the space bar and the page scrolls down, hiding the flash player. It's maddening! :O

Been around for a long time, but for some reason, hasn't been fixed. If you don't mind, please click the star next to this bug, to see if it'll get a little attention from the Chromium devs.

http://code.google.com/p/chromium/issues/detail?id=49218

Wes64
Scratcher
500+ posts

Everyone please star this Chromium bug

i would star it even though i dont use chromium, but i don't know how
GameHutSoftware
Scratcher
53 posts

Everyone please star this Chromium bug

How?
nXIII
Scratcher
1000+ posts

Everyone please star this Chromium bug

GameHutSoftware
How?
Lightnin
click the star next to this bug

Last edited by nXIII (Dec. 21, 2012 20:29:37)

Wes64
Scratcher
500+ posts

Everyone please star this Chromium bug

i see no stars.
nXIII
Scratcher
1000+ posts

Everyone please star this Chromium bug

Are you logged into your Google account?

Wes64
Scratcher
500+ posts

Everyone please star this Chromium bug

for some reason it wasn't recognizing i was signed in on that page. oh well, there we go
MathWizz
Scratcher
100+ posts

Everyone please star this Chromium bug

Starred! Also, I reported this not too long ago.
Hardmath123
Scratcher
1000+ posts

Everyone please star this Chromium bug

Done.
Lightnin
Scratcher
1000+ posts

Everyone please star this Chromium bug

Thanks everyone!
stevetheipad
Scratcher
500+ posts

Everyone please star this Chromium bug

159 people starred this issue….should get some attention.
MathWizz
Scratcher
100+ posts

Everyone please star this Chromium bug

While this is being fix couldn't you catch and cancel the space press event in JavaScript?

This code seems to work great:
var flashFocused = false;
Scratch.FlashApp.ASobj.addEventListener('focus', function(e) {
    flashFocused = true;
}, false);
Scratch.FlashApp.ASobj.addEventListener('blur', function(e) {
    flashFocused = false;
}, false);
document.addEventListener('keypress', function (e) {
    if (flashFocused) {
        e.preventDefault();
    }
}, false);

Last edited by MathWizz (Dec. 22, 2012 13:14:05)

Lightnin
Scratcher
1000+ posts

Everyone please star this Chromium bug

MathWizz
While this is being fix couldn't you catch and cancel the space press event in JavaScript?

This code seems to work great:
var flashFocused = false;
Scratch.FlashApp.ASobj.addEventListener('focus', function(e) {
    flashFocused = true;
}, false);
Scratch.FlashApp.ASobj.addEventListener('blur', function(e) {
    flashFocused = false;
}, false);
document.addEventListener('keypress', function (e) {
    if (flashFocused) {
        e.preventDefault();
    }
}, false);

Awesome! It works for me as well when I paste that into the console. Can you put this in a comment on the bug, and mention that it seems to work to address the problem?

http://mv.ezproxy.com.ezproxyberklee.flo.org/issues/62

Last edited by Lightnin (Dec. 22, 2012 15:29:30)

MathWizz
Scratcher
100+ posts

Everyone please star this Chromium bug

@Lightnin - Done.
Lightnin
Scratcher
1000+ posts

Everyone please star this Chromium bug

MathWizz
@Lightnin - Done.

Great! By the way - any extra useful info you can gather on existing bugs would be helpful. So don't hesitate to add that info onto the issue in a comment. That way when the devs get to it, they'll have more info and it'll be easier to fix.
Mokat
Scratcher
100+ posts

Everyone please star this Chromium bug

I would star it, unfortunately I don't use Chromium.
nXIII
Scratcher
1000+ posts

Everyone please star this Chromium bug

Mokat
I would star it, unfortunately I don't use Chromium.
You don't have to use Chromium to star it; you can just help it get attention.
stickdude123
Scratcher
85 posts

Everyone please star this Chromium bug

I've noticed that too, Maybe it's due to that HTML5 doesn't like locking the spacebar's scroll, Gets somewhat annoying.

Powered by DjangoBB