keys: default assignments can now be set to mapped or physical
A bit of a PITA, this commit: * Introduces a DeferredKeyCode type that defers resolving a concrete keycode * Adds key_map_preference config which can be Mapped or Physical * Key map building resolves the keycode using key_map_preference * Default key assignments have been re-phrased in order to produce DeferredKeyCodes * User-specified keys without `mapped:` or `phys:` prefixes will resolve according to key_map_preference refs: https://github.com/wez/wezterm/issues/1788 refs: https://github.com/wez/wezterm/issues/1784
This commit is contained in:
1 parent
76cbcb1341
commit
508baabc79
8 files changed
+306
-331
No files matched your search
@@ -13,6 +13,7 @@ As features stabilize some brief notes about them will accumulate here.
|
||||
|
||||
#### New
|
||||
#### Changed
|
||||
* Default key assignments are `mapped:` again. A new [key_map_preference](config/lua/config/key_map_preference.md) option allows the defaults to use `"Mapped"` or `"Physical"`.
|
||||
* Disabled ligatures for `"Monaco"` and `"Menlo"` fonts, as those ligatures match even for words such as `find`. [#1786](https://github.com/wez/wezterm/issues/1786) [#1736](https://github.com/wez/wezterm/issues/1736)
|
||||
#### Updated and Improved
|
||||
* Bundled harfbuzz to 4.1.0
|
||||
|
||||
@@ -275,6 +275,15 @@ your config, you will need to change it to either
|
||||
`{key="N", mods="CMD|SHIFT", ..}` or `{key="mapped:N", mods="CMD", ..}`
|
||||
in order to continue to respect the `SHIFT` modifier.
|
||||
|
||||
*Since: nightly builds only*
|
||||
|
||||
A new `key_map_preference` option controls how keys without an explicit `phys:`
|
||||
or `mapped:` prefix are treated. If `key_map_preference = "Mapped"` (the
|
||||
default), then `mapped:` is assumed. If `key_map_preference = "Physical"` then
|
||||
`phys:` is assumed.
|
||||
|
||||
The default key assignments will respect `key_map_preference`.
|
||||
|
||||
### Leader Key
|
||||
|
||||
*Since: 20201031-154415-9614e117*
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# `key_map_preference = "Mapped"`
|
||||
|
||||
*Since: nightly builds only*
|
||||
|
||||
Controls how keys without an explicit `phys:` or `mapped:` prefix are treated.
|
||||
|
||||
If `key_map_preference = "Mapped"` (the default), then `mapped:` is assumed. If
|
||||
`key_map_preference = "Physical"` then `phys:` is assumed.
|
||||
|
||||
Default key assignments also respect `key_map_preference`.
|
||||
|
||||
Reference in new issue
Block a user