Stop alt-tab from becoming input

Post suggestions regarding RVGL here in this subforum.
User avatar
hajducsekb
Posts: 77
From: ~/

Stop alt-tab from becoming input

Unread post by hajducsekb » Sun Mar 13, 2022 1:34 pm

Hi, I don't know how easy this would be to implement, but as of right now, whenever someone alt-tabs into the game, the tab gets detected as an input. This could especially be an issue for hosts, as if they alt-tab while in lobby, they might accidentally start the race.
Maybe it could be solved by turning off inputs for a portion of a second once the window becomes active. I don't know, not sure how hard that would be to add when considering the current code.
Thanks in advance c:
HAJDUC DOT COM
User avatar
Huki
Developer
Posts: 381

Re: Stop alt-tab from becoming input

Unread post by Huki » Mon Mar 14, 2022 3:36 am

Specifically in the waiting room, the TAB key press is ignored if modifiers are pressed (alt / ctrl / shift or win key). So I guess the only place alt-tab can conflict is in the editor. Is there any place else you experienced this issue?
User avatar
hajducsekb
Posts: 77
From: ~/

Re: Stop alt-tab from becoming input

Unread post by hajducsekb » Sun Mar 27, 2022 7:50 pm

Ohhhh.... I experienced it while spectating in the race, which is not as big of an issue, it's more a minor inconvenience. But I think people tend to hold down tab longer than alt, which is what might cause the issue in waiting room then.
HAJDUC DOT COM
Post Reply