-
Notifications
You must be signed in to change notification settings - Fork 9k
Description
Windows Terminal version
1.25.251014001-llm
Windows build number
10.0.19045.6332
Other Software
No response
Steps to reproduce
-
Open WT
-
Settings - Actions
-
Remove all the predefined actions (It can take a while, yes. Perhaps it would make sense to have an Action for that as well? :) )
-
Press Add new
-
Make sure your keyboard layout is US English.
-
Type
/(should be close to right Shift) -
Press Accept.
-
Press Save.
-
Add a keyboard layout with a different placement of
/, e.g. Ukrainian. -
Switch to that layout.
-
Suddenly wild "Open default settings file (JSON)" and "Open settings file (JSON)" actions appear!

Why? I didn't ask for them. I explicitly removed everything. Why my choices are not respected? -
Notice that
/is now suddenly calledshift+\.
However, it makes sense if you look at the layout again - it is in the upper case of the\key close to Enter, so it isshift+\indeed:

Which is kinda cool: WT is smart enough and user-friendly enough to show me what exactly we need to type now in this particular layout to get what we want. Nice. What could possibly go wrong, right? -
But there are still those two sudden actions we haven't asked for. Probably it's some bug in WT, but it's not a big deal, we can just remove them manually.
-
Press Edit - Delete - Yes on each.
-
Switch back to US English layout.
Expected Behavior
The action I've added should change back to /, same as it did before I removed those two extra actions.
It should trigger when I press / in US English (the key close to right Shift).
Actual Behavior
The action I've added does not change back to / when I switch to US English. It stays shift+\.
Pressing / in US English doesn't trigger it anymore.
If I open the json, it becomes obvious what happened:
"keybindings":
[
{
"id": "User.addMark.0",
"keys": "shift+\\"
},- When I switched to a new layout, WT kindly converted the config keys to the physical keys of that layout that would've produced the same character if pressed.
- When I made further changes while that layout was still active, WT persisted those physical keys to the config, as if I entered them manually, in the process losing the knowledge that those are not the keys I started from.
This, of course, can manifest in other, more probable scenarios: "switch the layout, add a new action, save, some key in the other layout is now broken" etc.
What can be done:
Mapping of keys between different layouts is not 1 to 1. It's one to many, or many to one, or many to many, or to none, can be anything since MSKLC exists, so conceptually it probably will always stay broken to some extent.
But maybe at least:
- Try to not overwrite the keys the user have not touched while adding, removing, editing something else?
- Fix those "Open default settings file (JSON)" and "Open settings file (JSON)" coming out of the blue?

