microsoft / microsoft/terminal

`keybindings` of dead keys using AltGr+X

Open
#10,218 6 comments 1 reaction 1 assignee View on GitHub

@lhecker is already working on this.

Since May 27, 2021.

Area-Input Area-Settings Help Wanted Issue-Bug Priority-2 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version (or Windows build number)

1.9.1445.0

### Steps to reproduce

- Use a keyboard that has a dead key hidden behind a altgr+X combo. (This is the case for instance on AZERTY keyboards for the \~ or the \` keys: the former is a dead key that requires altGr+\~ or ctrl+alt+\~ (the \~ is located on the 2 key, the \` on the 7 key))

The AZERTY keyboard for context:
![](https://camo.githubusercontent.com/b684d428ce04f860921ba21c5b42e65a861f497f16f64c48b2779b4a2ccce5e9/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f622f62392f4b425f4672616e63652e7376672f35303070782d4b425f4672616e63652e7376672e706e67)

- Bind that dead key to some action. for instance, I use those two `keybindings` to "un-deadify" some keys:
```json
{
"command": {
"action": "sendInput",
"input": "^"
},
"keys": "^"
},
{
"command": {
"action": "sendInput",
"input": "~"
},
"keys": "ctrl+alt+~"
}
```

### Actual Behavior

Both ^ and ~ keys are dead keys.

- If I type ^, it works great: the `^` shows up instantly and doesn't act as a dead key.
- If try to print a `~` it does work great when doing ctrl+alt+\~ (what `altgr` is an alias of), but not when using altGr+\~:
- when doing ctrl+alt+\~: the key shows instantly
- when doing altGr+\~: the key still acts dead (I need to add a space for `~` to show up)
- I made sure that `altGrAliasing` was turned on.

### Comments

This issue follows my previous https://github.com/microsoft/terminal/issues/5784 issue. TBF, this is the edge case of an edge case, and I would understand if this never got fixed... I'm just secretly hoping for another `@lhecker` miracle 😄 but can probably live without it

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.