secondlife / jira-archive

2 stars 0 forks source link

[BUG-234439] Alt-tabbing out of Steam fullscreen applications causes stuck ALT key in SL #11366

Open sl-service-account opened 1 year ago

sl-service-account commented 1 year ago

When running fullscreem applications/games via Steam and then Alt-tabbing into the Second Life viewer, this randomly causes the Alt-key being stuck in pressed state. This can most easily observed while typing in chat/IM and randomly executing a shortcut which uses a combination with the Alt key. (Not sure if the Second Life viewer actually has shortcuts consisting of only Alt + another key, but in Firestorm we do have and they randomly get triggered.)

I did some testing and as far as I can tell, this problem was introduced with the fix for SL-19190 (https://github.com/secondlife/viewer/commit/f1d247809b89d25e480f0e42f098c289da2379bc). After reverting that change, the problem appears to be gone.

Also not sure if this is only related to Steam fullscreen applications or fullscreen applications in general.

Original Jira Fields | Field | Value | | ------------- | ------------- | | Issue | BUG-234439 | | Summary | Alt-tabbing out of Steam fullscreen applications causes stuck ALT key in SL | | Type | Bug | | Priority | Unset | | Status | Accepted | | Resolution | Triaged | | Reporter | Ansariel Hiller (ansariel.hiller) | | Created at | 2023-09-20T18:07:37Z | | Updated at | 2023-09-29T17:33:38Z | ``` { 'Build Id': 'unset', 'Business Unit': ['Platform'], 'Date of First Response': '2023-09-27T12:28:00.104-0500', 'ReOpened Count': 0.0, 'Severity': 'Unset', 'System': 'SL Viewer', 'Target Viewer Version': 'viewer-development', 'What just happened?': 'When running fullscreem applications/games via Steam and then Alt-tabbing into the Second Life viewer, this randomly causes the Alt-key being stuck in pressed state. This can most easily observed while typing in chat/IM and randomly executing a shortcut which uses a combination with the Alt key. (Not sure if the Second Life viewer actually has shortcuts consisting of only Alt + another key, but in Firestorm we do have and they randomly get triggered.)\r\n\r\nI did some testing and as far as I can tell, this problem was introduced with the fix for SL-19190 (https://github.com/secondlife/viewer/commit/f1d247809b89d25e480f0e42f098c289da2379bc). After reverting that change, the problem appears to be gone.\r\n\r\nAlso not sure if this is only related to Steam fullscreen applications or fullscreen applications in general.', 'What were you doing when it happened?': '-', 'What were you expecting to happen instead?': '-', } ```
sl-service-account commented 1 year ago

Ansariel Hiller commented at 2023-09-25T17:06:50Z

Bump

sl-service-account commented 1 year ago

JIRAUSER341268 commented at 2023-09-27T17:28:00Z

Hi Ansariel,

We've been unsuccessful at reproducing this. What kind of game/application are you running through Steam? Is it something that has you using the Alt key a lot or is it occurring for everything?

sl-service-account commented 1 year ago

Ansariel Hiller commented at 2023-09-27T18:12:05Z

It's happening for me especially with Destiny 2 and Euro Truck Simulator 2, which are both running in fullscreen mode. Since it's not related to a single game, I suspect it's the case with every fullscreen game running via Steam at least. A friend of mine is observing the same behavior running a viewer with the change mentioned above. The pure switching from the fullscreen application to SL via ALT-Tab is causing it - I don't even need to do anything in the other game. Just switching back and forth is enough to randomly trigger the behavior.

Like I mentioned before it is probably difficult to observe in the LL viewer since there is no action directly mapped to a shortcut using just the ALT-key modifier. In Firestorm for instance, we have the teleport history mapped to ALT-H and roughly 50% of the time I switch from the game to SL to write something to my friend, I end up with the teleport history suddenly getting opened. For testing, it might be a good idea to modify the menu_viewer.xml file and set a shortcut like ALT-H to open some window. Then try switching from a fullscreen game in Steam to the SL viewer and try typing into chat using the key used for the shortcut (H if you set the ALT-H shortcut).

For my private development/test build of Firestorm, I reverted the changes of the mentioned commit over 1.5 weeks ago and the issue has never happened since then.