diff options
author | tmk <tmk@users.noreply.github.com> | 2015-12-09 12:04:14 +0900 |
---|---|---|
committer | tmk <tmk@users.noreply.github.com> | 2015-12-09 12:04:14 +0900 |
commit | bf88dfa5db57d5c90e1e5db549783873ded9253b (patch) | |
tree | 43c6bd16ee3bbeae38d664cb0e1f66e580605337 /FAQ-Keymap.md | |
parent | 4e9170156ee83217a1379b2cae051de268831f38 (diff) |
Updated FAQ Keymap (markdown)
Diffstat (limited to 'FAQ-Keymap.md')
-rw-r--r-- | FAQ-Keymap.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/FAQ-Keymap.md b/FAQ-Keymap.md index e6f01f53c0..6e02270fd6 100644 --- a/FAQ-Keymap.md +++ b/FAQ-Keymap.md @@ -234,15 +234,15 @@ weak_mods retains state of virtual or temprary modifiers which should not affect Let's say you hold down physical left shift key and type ACTION_MODS_KEY(LSHIFT, KC_A), with weak_mods, -(1) hold down left shift: real_mods |= MOD_BIT(LSHIFT) -(2) press ACTION_MODS_KEY(LSHIFT, KC_A): weak_mods |= MOD_BIT(LSHIFT) -(3) release ACTION_MODS_KEY(LSHIFT, KC_A): waek_mods &= ~MOD_BIT(LSHIFT) +* (1) hold down left shift: real_mods |= MOD_BIT(LSHIFT) +* (2) press ACTION_MODS_KEY(LSHIFT, KC_A): weak_mods |= MOD_BIT(LSHIFT) +* (3) release ACTION_MODS_KEY(LSHIFT, KC_A): waek_mods &= ~MOD_BIT(LSHIFT) real_mods still keeps modifier state. without weak mods, -(1) hold down left shift: real_mods |= MOD_BIT(LSHIFT) -(2) press ACTION_MODS_KEY(LSHIFT, KC_A): real_mods |= MOD_BIT(LSHIFT) -(3) release ACTION_MODS_KEY(LSHIFT, KC_A): real_mods &= ~MOD_BIT(LSHIFT) +* (1) hold down left shift: real_mods |= MOD_BIT(LSHIFT) +* (2) press ACTION_MODS_KEY(LSHIFT, KC_A): real_mods |= MOD_BIT(LSHIFT) +* (3) release ACTION_MODS_KEY(LSHIFT, KC_A): real_mods &= ~MOD_BIT(LSHIFT) here real_mods lost state for 'physical left shift'. weak_mods is ORed with real_mods when keyboard report is sent. |