From f0ae5dfc73b37bbbfc9d9ff99623a17d11bcf334 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 18 Jan 2021 16:31:09 +0530 Subject: [PATCH] ... --- docs/keyboard-protocol.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/keyboard-protocol.rst b/docs/keyboard-protocol.rst index 900fe5fd8..e10884829 100644 --- a/docs/keyboard-protocol.rst +++ b/docs/keyboard-protocol.rst @@ -151,7 +151,7 @@ Modifiers are encoded as a bit field with:: In the escape code, the modifier value is encoded as a decimal number which is ``1 + actual modifiers``. So to represent :kbd:`shift` only, the value would be ``1 + -1 = 2``, to represent :kbd:`ctrl+shift` the value would be ``1 + 0b101 = 5`` +1 = 2``, to represent :kbd:`ctrl+shift` the value would be ``1 + 0b101 = 6`` and so on. If the modifier field is not present in the escape code, its default value is ``1`` which means no modifiers.