Search Issue Tracker

Active

Under Consideration for 1.4.X

Votes

0

Found in [Package]

1.4.4

Issue ID

ISXB-390

Regression

No

anyKey.isPressed still runs when using alt+tab to return to build

Package: Input System

-

How to reproduce:
1. Open the attached “AltTab” project
2. Build and Run the project with the “SampleScene” Scene
3. Alt+Tab out of the Build and back

Expected result: The Scene is colored blue (anyKey.isPressed is no longer running)
Actual result: The Scene is colored red (anyKey.isPressed is still running)

Reproducible with: 1.4.4 (2021.3.15f1)

Reproduced on: Windows 10

Note:
- CQA Could not test the issue
- Issue disappears if Alt is pressed again in Build
- Not reproducible in Editor
- Similar issue was reported: [https://issuetracker.unity3d.com/issues/alt-tabbing-out-of-build-leaves-the-alt-key-pressed-on-return|https://issuetracker.unity3d.com/issues/alt-tabbing-out-of-build-leaves-the-alt-key-pressed-on-return|smart-link]

Comments (1)

  1. darbotron

    Mar 06, 2023 17:34

    Having a similar issue:
    * Keyboard.anyKey.wasPressedThisFrame intermittently stops working after alt-tab / using the windows game bar and switching back
    * individual keyboard keys accessed through their controls seem fine
    * seems more prone to messing up when no gamepads are connected (i.e. just mouse & keys)
    * in builds 30-50% repro
    * in editor maybe 5%

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.