Skip to content

AltGR SEQUENCES DO NOT WORK -- Can't type any AltGr combinations in Windows Terminal #521

Description

Your Windows build number:
10.0.18362.86

What you're doing and what's happening:
Trying to enter the @ sign on a Swedish keyboard in a PowerShell console using Alt Gr + 2.
See animated gif:

terminal

What's wrong / what should be happening instead:
Windows terminal shows digit-argument instead of outputting the @ sign as expected.

It's possible this is a PEBKAC error somehow but the problem doesn't show up in the normal PowerShell console... 😓

Activity

  1. patriksvensson commented on May 7, 2019

    @patriksvensson
    Author

    Update: Same thing happens with all digits when combined with Alt Gr.

  2. zadjii-msft commented on May 7, 2019

    @zadjii-msft
    Member

    You know, this is probably on me. We're probably not getting vkey correctly for AltGR combos somewhere in TermControl.cpp, when we get the KeyDown event.

  3. watermelonpizza commented on May 8, 2019

    @watermelonpizza

    Kinda unrelated, but what software did you use to get a recording with the keys you pressed in the gif Patrik Svensson (@patriksvensson) ?

  4. patriksvensson commented on May 8, 2019

    @patriksvensson
    Author

    Alice Miller (@watermelonpizza) I used Carnac to display the key presses and ScreenToGif to capture the window.

  5. watermelonpizza commented on May 8, 2019

    @watermelonpizza

    Oh carnac, awesome thanks! I'll add that to my list of goodies :)

  6. DHowett-MSFT commented on May 9, 2019

    @DHowett-MSFT
    Contributor

    I think this is a duplicate of #487.

  7. DHowett-MSFT commented on May 9, 2019

    @DHowett-MSFT
    Contributor

    Whoops, it looks like the left hand doesn't know what the right hand is doing, and I just created a circular duplicate link.

  8. added
    Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)
    and removed
    Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.
    on May 9, 2019
  9. jozsefsallai commented on May 9, 2019

    @jozsefsallai

    Can confirm this issue on Windows version 10.0.18362.30 with Hungarian keyboard layout. The behavior is different, depending on what console I'm using:

    • cmd: it just writes the character but in uppercase
    • powershell: does nothing at all
    • git bash: doesn't write out anything, but plays the default beep
  10. 149 remaining items

  11. sba923 commented on Aug 7, 2019

    @sba923

    AltGr (~#{[|`\^@]}¤€) works fine here with a French keyboard, Windows 10 version 1903 build 18362.267, Windows Terminal Preview 0.3.2171.0, and the tab-switching shortcuts set to Ctrl+Alt+digit.

    Good job!

  12. DHowett-MSFT commented on Aug 7, 2019

    @DHowett-MSFT
    Contributor

    Thanks for the confirmation!

  13. sba923 commented on Aug 7, 2019

    @sba923

    You're very welcome!

  14. henrik-jensen commented on Aug 7, 2019

    @henrik-jensen

    0.3.2171.0 fix confirmed for my system - Danish keyboard Win10 Home 1903 build 10.0.18362.267.
    Deleted my profiles.json to get default settings and now AltGr also works for a new install ( I assume ).
    Great job Leonard Hecker (@lhecker) and everybody else involved.

  15. beppler commented on Dec 3, 2019

    @beppler

    Hi I think I have this problem on version 0.7.

    I can not enter the slash key on my keyboard either using the numeric keypad ou AltGr+Q (Brazilian ABTN2 keyboard of an Samsung laptop that doe not have the question mark/slash key).

    Edit: I can not enter any AltGr key.

  16. beppler commented on Dec 4, 2019

    @beppler

    After remove an older version of PSReadline eveything is working now.

  17. sba923 commented on Dec 4, 2019

    @sba923

    FWIW, I have written the attached PowerShell scripts to verify what versions of PSReadline are on my system / which one is active.

    CheckPSReadLineStatus.zip

    HTH

  18. hatvik commented on Dec 13, 2019

    @hatvik

    To fix the same issue as beppler reported, do:

    After remove an older version of PSReadline eveything is working now.

    From elevated powershell Session do:

    Install-Module -Name PowerShellGet -Force
    Exit
    

    From elevated cmd session do:
    powershell -noprofile -command "Install-Module PSReadLine -Force -SkipPublisherCheck -AllowPrerelease"

  19. ilmax commented on Jan 15, 2020

    @ilmax

    What's the status of this issue?
    Because looking at the linked issues it seems fixed, but it's still not working for me. In order to print the ~ character on an Italian keyboard layout, I'm used to do Alt+126 but this has a different behavior depending on the type of the terminal, but in none of them I'm able to get the ~ character printed, while doing directly in the the underlying shell (git/cmd/powershell/wsl not embedded in the windows terminal) works as expected

    This is happening to me with the latest version of the windows terminal, at the moment of writing is:

    Windows Terminal (Preview)
    Version: 0.8.10091.0)
    
  20. lhecker commented on Jan 15, 2020

    @lhecker
    Member

    Massimiliano Donini (@ilmax) I broke Alt+Numpad input in #3117. Now that #3117 had been merged and the associated issue been fixed, we could work on reintroducing numpad input into the code base.
    I'd make this an optional, configurable behavior though, because I'm fairly certain that most potential users of the Terminal app won't benefit from it anymore. The app should thus default to sending all possible keyboard input to the shell so you can configure more advanced vim, etc. keybindings.
    Implementing this should be a fair bit easier as soon as #4192 is merged. You'd have to add the additional logic right here and check whether the Alt key (and only the Alt key) is being held in states, while the vkey stems from the numpad as opposed to from the regular numeric keys. Feel free to submit a PR at any time! 🙂

  21. ilmax commented on Jan 15, 2020

    @ilmax

    Leonard Hecker (@lhecker) thanks for the quick response, I just wanted to know the state of this because every issue I found was closed but the problem is still there.
    Not sure I'll come up with a PR on this, I never looked at the code before 😄 so I really don't know where to start, despite your suggestion.

    I just wanted to know how to fix my workflow for git rebase -i because now I have to open something like notepad++, type the ~ character, copy it and paste it in the terminal.

  22. DHowett-MSFT commented on Jan 15, 2020

    @DHowett-MSFT
    Contributor

    Just so I understand: you’re on a thread about AltGr with a question about alt+numpad sequences? This may be why all the threads you’re finding are closed: the AltGr problem is fixed.

    I do believe we have a separate issue tracking alt+numpad input problems.

  23. ilmax commented on Jan 15, 2020

    @ilmax

    Yep, you're right, sorry for the confusion. I think #657 may the the correct one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Help WantedWe encourage anyone to jump in on these.Issue-BugIt either shouldn't be doing this or needs an investigation.Product-TerminalThe new Windows Terminal.Resolution-Fix-AvailableIt's available in an Insiders build or a releaseResolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions