Extract doc of treat_left_ctrlalt_as_altgr and leave a reference

This commit is contained in:
Benoit de Chezelles authored and Wez Furlong committed 2021-03-07 12:52:03 -08:00
1 parent 683d8e96e8
commit abcc73fd22
2 files changed
+18 -14

No files matched your search

+1 -14
View File
@@ -102,20 +102,7 @@ return {
### Microsoft Windows and Ctrl-Alt <-> AltGr
*since: nightly*
If you are using a layout with an *AltGr* key, you may experience issues
when running inside a VNC session, because VNC emulates the AltGr keypresses
by sending plain *Ctrl-Alt* keys, which won't be understood as AltGr.
To fix this behavior you can tell WezTerm to treat left *Ctrl-Alt* keys as
*AltGr* with the option `treat_left_ctrlalt_as_altgr`. Note that the key bindings using separate Ctrl and Alt won't be triggered anymore.
```lua
return {
treat_left_ctrlalt_as_altgr = true
}
```
If you are using VNC and a keyboard layout with dead keys, then you may wish to enable [treat_left_ctrlalt_as_altgr](lua/config/treat_left_ctrlalt_as_altgr.md).
### Defining Assignments for key combinations that may be composed
@@ -0,0 +1,17 @@
# `treat_left_ctrlalt_as_altgr = false`
*since: nightly*
If you are using a layout with an *AltGr* key, you may experience issues
when running inside a VNC session, because VNC emulates the AltGr keypresses
by sending plain *Ctrl-Alt* keys, which won't be understood as AltGr.
To fix this behavior you can tell WezTerm to treat left *Ctrl-Alt* keys as
*AltGr* with the option `treat_left_ctrlalt_as_altgr`. Note that the key
bindings using separate Ctrl and Alt won't be triggered anymore.
```lua
return {
treat_left_ctrlalt_as_altgr = true
}
```