From d74513d075e610f0ea8189fc3a370786f97839d6 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 23 Dec 2021 09:54:15 -0800 Subject: [PATCH] Fix explanation of modmap and keymap --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6116107..014bbd2 100644 --- a/README.md +++ b/README.md @@ -98,8 +98,8 @@ See also: [example/config.yml](./example/config.yml) ### modmap `modmap` is for key-to-key remapping like xmodmap. -If you want to remap modifier keys, you need to use `modmap`. -Note that `modmap` remapping happens before `keymap` remapping. +Note that remapping a key to a modifier key, e.g. CapsLock to Control\_L, is supported only in `modmap`. +It is to let `keymap` correctly recognize modifier key combinations. ```yml modmap: @@ -118,7 +118,7 @@ Some [custom aliases](src/config/key.rs) like `SHIFT_R`, `CONTROL_L`, etc. are p ### keymap -`modmap` is for remapping a sequence of key combinations to another sequence of key combinations or other actions. +`keymap` is for remapping a sequence of key combinations to another sequence of key combinations or other actions. ```yml modmap: