Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

B22 - Editor Eating ALT Key?

Discussion in '5.4 Beta' started by DrHeinous, Jun 21, 2016.

  1. DrHeinous

    DrHeinous

    Joined:
    Jun 25, 2013
    Posts:
    19
    So I just upgraded to B22. It now seems that the editor eats any combination of keys with ALT down. The following will never print ALT. Rather than hand/eye icon at the top left of the editor (pan/translate/rotate/scale toolbar) switches. Is anyone else experiencing this?

    Code (CSharp):
    1.  
    2. void Update()
    3.         {
    4.         //for keyboard, arrow keys plus ALT.
    5.         if (Input.GetKeyUp(KeyCode.LeftArrow) || Input.GetKeyUp(KeyCode.RightArrow))
    6.             {
    7.  
    8.             Debug.Log("Arrow");
    9.  
    10.             if (Input.GetKey(KeyCode.LeftAlt) || Input.GetKey(KeyCode.RightAlt))
    11.                 {
    12.                 //Does not work. Alt in combination with anything never happens.
    13.                 Debug.Log("Alt");
    14.                 }
    15.             }
    16.         }
    17.  
     
  2. shawn

    shawn

    Unity Technologies

    Joined:
    Aug 4, 2007
    Posts:
    551
    Sounds bad. Bug report with minimal reproducible project would be appreciated.
     
  3. ShantiGaudreault

    ShantiGaudreault

    Unity Technologies

    Joined:
    Aug 17, 2015
    Posts:
    9
    This issue is fixed and undergoing QA before going into next Beta.
    Cheers
    Shanti
    Editor Montreal
     
  4. DrHeinous

    DrHeinous

    Joined:
    Jun 25, 2013
    Posts:
    19
    Great, thanks for the quick response. I was just about to upload a repro, but I guess no reason to now.
     
  5. ShantiGaudreault

    ShantiGaudreault

    Unity Technologies

    Joined:
    Aug 17, 2015
    Posts:
    9
    Nope. Thanks for bringing it up!
    Shanti
     
unityunity