Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Preventing Unity from Losing Focus with Keyboard Shortcuts (MacOS)

Discussion in 'Input System' started by FredoAWT, Jan 11, 2024.

  1. FredoAWT

    FredoAWT

    Joined:
    Jul 29, 2019
    Posts:
    2
    Hello everyone,

    I'm experiencing an issue in Unity where I inadvertently lose focus from the Unity window when using certain keyboard shortcuts. Specifically, when I press Ctrl + Left Arrow to execute a command in my game (like making a character run), it results in my screen switching its display or the window losing focus.

    I'm looking for a solution to prevent Unity from losing focus when these specific keyboard shortcuts are used. This issue is disrupting my workflow and I'm not sure how to resolve it. Is there a way to either modify these specific shortcuts in Unity or lock the focus to the Unity window to avoid this problem? I'm open to suggestions like changing system settings, writing scripts, or using any available Unity settings or extensions.

    Any advice or guidance on this matter would be greatly appreciated.

    Thank you in advance!