Issue with several AltGr key combinations #7645

Closed
opened 2026-01-31 01:09:29 +00:00 by claunia · 4 comments
Owner

Originally created by @Alxandr on GitHub (Apr 24, 2020).

Environment

Windows build number: 
Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.18363.0 Microsoft Windows NT 10.0.18363.0

Windows Terminal version (if applicable):
0.11.200421001-release0.11

Any other software?

Steps to reproduce

Use a Norwegian keyboard layout, and attempt to use @ (altgr+2), $ (altgr+4) or { (altgr+7), or others in terminal.

Expected behavior

The keys should show up in the terminal, just like they would in the old windows console host or any code editor.

Actual behavior

Depending on how many tabs you have open in the terminal, multiple things can happen. If you only have 1 tab open, @ (altgr+2) and $ (altgr+4) works. If you have 2 tabs open, @ stops working and instead goes to the second tab. If you have 4 or more tabs, $ stops working and goes to the fourth tab. { never works as expected and inserts ^[ (which is a really unfortunate escape code) if you have fewer than 7 tabs, and (as would be expected at this point) navigates you to the seventh tab if you have that many.

All of this can be seen in the gif below (note that Carnac also displays the keys pressed as US keyboard layout, so instead of = (shift+0) it displays )):

error

Having altgr+# as a keyboard shortcut by default in any program intended for developers is likely going to break for a large number of users who do not use US keyboard layout, as that is generally where the programming symbols are. All of the following are behind altgr+# on Norwegian keyboards for instance: @${[]}.

Originally created by @Alxandr on GitHub (Apr 24, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.18363.0 Microsoft Windows NT 10.0.18363.0 Windows Terminal version (if applicable): 0.11.200421001-release0.11 Any other software? ``` # Steps to reproduce <!-- A description of how to trigger this bug. --> Use a Norwegian keyboard layout, and attempt to use `@` (altgr+2), `$` (altgr+4) or `{` (altgr+7), or others in terminal. # Expected behavior <!-- A description of what you're expecting, possibly containing screenshots or reference material. --> The keys should show up in the terminal, just like they would in the old windows console host or any code editor. # Actual behavior <!-- What's actually happening? --> Depending on how many tabs you have open in the terminal, multiple things can happen. If you only have 1 tab open, `@` (altgr+2) and `$` (altgr+4) works. If you have 2 tabs open, `@` stops working and instead goes to the second tab. If you have 4 or more tabs, `$` stops working and goes to the fourth tab. `{` never works as expected and inserts `^[` (which is a really unfortunate escape code) if you have fewer than 7 tabs, and (as would be expected at this point) navigates you to the seventh tab if you have that many. All of this can be seen in the gif below (note that Carnac also displays the keys pressed as US keyboard layout, so instead of `=` (shift+0) it displays `)`): ![error](https://user-images.githubusercontent.com/112334/80204969-1e1a2600-862a-11ea-9ab1-6550d30dd5f1.gif) Having altgr+# as a keyboard shortcut by default in any program intended for developers is likely going to break for a large number of users who do not use US keyboard layout, as that is generally where the programming symbols are. All of the following are behind altgr+# on Norwegian keyboards for instance: `@${[]}`.
claunia added the Resolution-Duplicate label 2026-01-31 01:09:29 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Apr 24, 2020):

Thanks for the report! This is a great writeup, but #5525 was filed just before this, so we'll be using that thread to track this issue. I've moved your writeup into that thread as well.

/dup #5525

@zadjii-msft commented on GitHub (Apr 24, 2020): Thanks for the report! This is a great writeup, but #5525 was filed just before this, so we'll be using that thread to track this issue. I've moved your writeup into that thread as well. /dup #5525
Author
Owner

@ghost commented on GitHub (Apr 24, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Apr 24, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Author
Owner

@Alxandr commented on GitHub (Apr 24, 2020):

Ah, sorry for posting a duplicate. I only found an older one that had already been resolved with a similar issue.

@Alxandr commented on GitHub (Apr 24, 2020): Ah, sorry for posting a duplicate. I only found an older one that had already been resolved with a similar issue.
Author
Owner

@zadjii-msft commented on GitHub (Apr 24, 2020):

No problem, they were posted pretty closely together so I can't really fault you for that ☺️

@zadjii-msft commented on GitHub (Apr 24, 2020): No problem, they were posted pretty closely together so I can't really fault you for that ☺️
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7645