Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug [Linux] Key press is not registered on non-english keyboard layouts

Discussion in 'Input System' started by nrader95, Apr 21, 2021.

  1. nrader95

    nrader95

    Joined:
    Aug 19, 2019
    Posts:
    24
    Okay, so i first encountered this when i still used legacy input system, but later decided to rewrite my input to new one to see if that helps. No luck.
    The issue does not show on windows, so i assume it's platform-specific. (I don't have mac to see if it's affected, though)

    Steps to reproduce:
    1. Use Linux version of Unity.
    2. Have non-english keyboard selected. (russian, in my case)
    3. Try to press any character key that tend to change depending on layout (control keys, space etc still work)
    4. Despite key being pressed, Keyboard.current.anyKey.isPressed says otherwise.
    My configuration:
    • Unity 2020.3.0f1
    • Linux 5.9.10
    • glibc 2.33
    • System locale: ru_RU.UTF-8
    Bugzilla ticket:
    Fogbugs 1330732
    Issuetracker
    So, anyone have an idea how to fix that?
     
    Last edited: Jun 9, 2021