Xaotique
09-07-2013, 02:23 PM
When playing, if you press tab it will lose focus of the game. Clicking the game doesn't solve this problem though. You have to click outside of the game, then back into it to have keyboard input once again. You can still input via mouse, but keyboard fails until clicking out and back in.
Not sure if this belongs under suggestions or what, but it would be nice to have tab input blocked if possible. Not sure of what all is allowed under Chrome games, but simple javascript can fix this. For example, adding the following does the trick.
window.addEventListener("keydown", function(e)
{
if (e.keyCode == 9)
{
e.preventDefault();
return false;
}
return true;
}, false);
I know I can fix this with a greasemonkey (tampermonkey) script using the above, but it would be nicer if that weren't necessary.
Note: If not obvious at this point, it's on Chrome that this is an issue.
Not sure if this belongs under suggestions or what, but it would be nice to have tab input blocked if possible. Not sure of what all is allowed under Chrome games, but simple javascript can fix this. For example, adding the following does the trick.
window.addEventListener("keydown", function(e)
{
if (e.keyCode == 9)
{
e.preventDefault();
return false;
}
return true;
}, false);
I know I can fix this with a greasemonkey (tampermonkey) script using the above, but it would be nicer if that weren't necessary.
Note: If not obvious at this point, it's on Chrome that this is an issue.