From 951ac7994ef6d18abab1155b5103bdd8fe8258e7 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Sat, 10 Aug 2024 09:53:49 +0000 Subject: [PATCH] Updated Keyboard mappings (markdown) --- Keyboard-mappings.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Keyboard-mappings.md b/Keyboard-mappings.md index 0e14060..fe9e7fd 100644 --- a/Keyboard-mappings.md +++ b/Keyboard-mappings.md @@ -25,15 +25,13 @@ We're interested in: - The value between the brackets of `Some`, which is the one to use in the key property of the mapping - The boolean properties in `ModifiersState`, which indicate which modifiers to add in the mods property of the mapping (these can be concatenated using the `|` character) -The value for the `chars` property of each entry in `key_bindings:` can be any text string and supports both hexadecimal (`\xNN`) and unicode (`\uNNNN`) escapes: +The value for the `chars` property of each entry in `key_bindings:` can be any text string and supports unicode (`\uNNNN`) escapes: ```yml # Insert the `[` character - - { key: LBracket, mods: Alt, chars: "[" } - # Send the Ctrl+C control using its hex value... - - { key: T, mods: Control|Shift, chars: "\x03" } - # ... or using its unicode value - - { key: T, mods: Control|Shift, chars: "\u0003" } + - { key = "LBracket", mods = "Alt", chars = "[" } + # Send the Ctrl+C control using its unicode value + - { key = "T", mods = "Control|Shift", chars = "\u0003" } ``` ### The `virtual_keycode` is `None` @@ -43,5 +41,5 @@ If Alacritty is not able to find the correct keycode for the pressed key, it mig The scancode is also printed in the output of `--print-events` and can be used directly in the `key` field of a mapping: ```yml - - { key: 33, mods: Alt, chars: "[" } + - { key = 33, mods = "Alt", chars = "[" } ``` \ No newline at end of file