This commit is contained in:
Kovid Goyal 2021-11-25 10:35:53 +05:30
parent e68914f46b
commit 0bcf73f980
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -460,10 +460,11 @@ distinguish these, use the :ref:`disambiguate <disambiguate>` flag.
Legacy text keys Legacy text keys
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
For legacy compatibility, the keys For legacy compatibility, the keys :kbd:`a`-:kbd:`z` :kbd:`0`-:kbd:`9`
:kbd:`a`-:kbd:`z` :kbd:`0`-:kbd:`9` :kbd:`\`` :kbd:`-` :kbd:`=` :kbd:`[` :kbd:`]` :kbd:`\\` :kbd:`;` :kbd:`'` :kbd:`,` :kbd:`.` :kbd:`/` with the modifiers :kbd:`\`` :kbd:`-` :kbd:`=` :kbd:`[` :kbd:`]` :kbd:`\\` :kbd:`;` :kbd:`'`
:kbd:`shift`, :kbd:`alt`, :kbd:`ctrl`, :kbd:`shift+alt`, :kbd:`ctrl+alt` are output using the :kbd:`,` :kbd:`.` :kbd:`/` with the modifiers :kbd:`shift`, :kbd:`alt`,
following algorithm: :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:`alt` key is pressed output the byte for ``ESC (0x1b)``
#. If the :kbd:`ctrl` modifier is pressed map the key using the table #. If the :kbd:`ctrl` modifier is pressed map the key using the table