From 063d6652e02b3be5f8ddd713c51a5806b439f1e4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 10 Feb 2017 15:13:22 +0530 Subject: [PATCH] ... --- key_encoding.asciidoc | 2 +- preprocess-readme.py | 2 +- protocol-extensions.asciidoc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/key_encoding.asciidoc b/key_encoding.asciidoc index 7fb440f71..25dbd1225 100644 --- a/key_encoding.asciidoc +++ b/key_encoding.asciidoc @@ -3,7 +3,7 @@ See link:protocol-extensions.asciidoc#keyboard-handling[Keyboard Handling protocol extension] |=== -| Name | Encoded representation +| Name | Encoded representation (base64) | 0 | `BM` | 1 | `BN` diff --git a/preprocess-readme.py b/preprocess-readme.py index 52b528ae2..df544d6fa 100755 --- a/preprocess-readme.py +++ b/preprocess-readme.py @@ -42,7 +42,7 @@ raw = subprocess.check_output([ key_map = json.loads(raw) lines = [ 'See link:protocol-extensions.asciidoc#keyboard-handling[Keyboard Handling protocol extension]', - '', '|===', '| Name | Encoded representation', '' + '', '|===', '| Name | Encoded representation (base64)', '' ] for k in sorted(key_map): lines.append('| {:15s} | `{}`'.format(k.replace('_', ' '), key_map[k])) diff --git a/protocol-extensions.asciidoc b/protocol-extensions.asciidoc index 61504f1fe..a4a193999 100644 --- a/protocol-extensions.asciidoc +++ b/protocol-extensions.asciidoc @@ -368,7 +368,7 @@ The escape sequence encodes the following properties: Where `` is one of `p` -- press, `r` -- release and `t` -- repeat. Modifiers is a bitmask represented as a single hexadecimal digit in lower case. Shift -- `0x1`, Control -- `0x2`, Alt -- `0x4` and Super -- `0x8`. `` is -a number (in lowercase hexadecimal) corresponding to the key pressed. The key name to +a number (encoded in base64) corresponding to the key pressed. The key name to number mapping is defined in link:key_encoding.asciidoc[this table]. For example: