From 0bcf73f980061462241cc206d2ee75477877a4ed Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 Nov 2021 10:35:53 +0530 Subject: [PATCH] ... --- docs/keyboard-protocol.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/keyboard-protocol.rst b/docs/keyboard-protocol.rst index 1207cacb1..710709199 100644 --- a/docs/keyboard-protocol.rst +++ b/docs/keyboard-protocol.rst @@ -460,10 +460,11 @@ distinguish these, use the :ref:`disambiguate ` flag. Legacy text keys ~~~~~~~~~~~~~~~~~~~ -For legacy compatibility, the keys -:kbd:`a`-:kbd:`z` :kbd:`0`-:kbd:`9` :kbd:`\`` :kbd:`-` :kbd:`=` :kbd:`[` :kbd:`]` :kbd:`\\` :kbd:`;` :kbd:`'` :kbd:`,` :kbd:`.` :kbd:`/` with the modifiers -:kbd:`shift`, :kbd:`alt`, :kbd:`ctrl`, :kbd:`shift+alt`, :kbd:`ctrl+alt` are output using the -following algorithm: +For legacy compatibility, the keys :kbd:`a`-:kbd:`z` :kbd:`0`-:kbd:`9` +:kbd:`\`` :kbd:`-` :kbd:`=` :kbd:`[` :kbd:`]` :kbd:`\\` :kbd:`;` :kbd:`'` +:kbd:`,` :kbd:`.` :kbd:`/` with the modifiers :kbd:`shift`, :kbd:`alt`, +:kbd:`ctrl`, :kbd:`shift+alt`, :kbd:`ctrl+alt` are output using the following +algorithm: #. If the :kbd:`alt` key is pressed output the byte for ``ESC (0x1b)`` #. If the :kbd:`ctrl` modifier is pressed map the key using the table