Tabbing out of the game

Bugs will be moved here once resolved.

Post » Sun Nov 06, 2016 7:58 am

Problem Description
____ If the developper did not add the keyboard object with an active On tab pressed, the user can tabbing out of the game if he presses it once or twice then presses enter ____

Attach a Capx
____ https://1drv.ms/u/s!AjkoCSebIn9JizvG1BcCFKhT76Tj ____

Description of Capx
____ It is a blank project with an inactive "On tab pressed event" ____

Steps to Reproduce Bug
  • Launch the game without changing the capx
  • press tab inside the game (notice the whatbrowser.org url on the bottom of your webbrowser)
  • press enter, now you've successfully exited the game.
  • now go enable that condition and redo the same test, it doesn't occur anymore

Observed Result
____ We end up on whatbrowser.org ____

Expected Result
____ Nothing ____

Affected Browsers
  • Opera : Yes
  • Chrome: Yes
  • FireFox: Yes
  • Edge: Yes

Operating System and Service Pack
Windows 10

Construct 2 Version ID
r239


It is more a reference bug report than an actual bug report, as it is fixed with one condition which is easy to guess with the manual on the keyboard object, still would be nice if we didn't have to do this IMHO.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
54
S
22
G
18
Posts: 2,123
Reputation: 17,150

Post » Mon Nov 14, 2016 4:52 pm

This is an issue with the browsers/NWJS interacting with Windows hotkeys, not C2.
B
88
S
47
G
25
Posts: 535
Reputation: 21,802

Post » Mon Nov 14, 2016 5:50 pm

Yeah, browsers let you tab in to canvas fallback content (for some reason), and then pressing enter selects a link.

I vaguely remember reporting this some time ago, but IIRC they wouldn't fix it since it's an accessibility feature or something. You could just delete the fallback content (stuff inside the <canvas> tag) after exporting if it bothers you...
Scirra Founder
B
402
S
238
G
89
Posts: 24,637
Reputation: 196,081

Post » Mon Nov 14, 2016 6:11 pm

To be fair I didn't expect it to be fixed, but wanted to have a trace of it somewhere (and the workaround that will let you have the fallback of the canvas without this issue) as it affects pretty much all non NW.Js C2 games.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
54
S
22
G
18
Posts: 2,123
Reputation: 17,150


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests