diff options
| author | Spike | 2025-05-08 17:04:45 -0400 |
|---|---|---|
| committer | GitHub | 2025-05-08 23:04:45 +0200 |
| commit | b670fe0da2226f7f0729694f9210c1dd675d1ea1 (patch) | |
| tree | 659a142e597558fbc6d623fd930de151da1f66df | |
| parent | 32e82d6791dfbd2376d3fa50e99ac258582b433d (diff) | |
| download | unexpected-keyboard-b670fe0da2226f7f0729694f9210c1dd675d1ea1.tar.gz unexpected-keyboard-b670fe0da2226f7f0729694f9210c1dd675d1ea1.zip | |
Clarify use of \\ per Julow in Julow#989 (#990)
| -rw-r--r-- | doc/Possible-key-values.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/Possible-key-values.md b/doc/Possible-key-values.md index cee4b69..e59a523 100644 --- a/doc/Possible-key-values.md +++ b/doc/Possible-key-values.md @@ -40,13 +40,12 @@ To get this character... | ...you can type :---- | :------ A literal newline character, which is different from `enter` and `action` in certain apps. | `\n` A literal tab character, which is different from `tab` in certain apps. | `\t` -`\` | `\\` `&` | `&` `<` | `<` `>` | `>` `"` | `"` -The characters `?`, `#`, and `@` do not need to be escaped when writing custom layouts. Internally, they can be escaped by prepending backslash (by typing `\?`, `\#`, and `\@`). +The characters `\` (unless followed by n or t), `?`, `#`, and `@` do not need to be escaped when writing custom layouts. When writing a layout to be included in the app (in [srcs/layouts](https://github.com/Julow/Unexpected-Keyboard/tree/master/srcs/layouts)), they are represented by typing `\\`, `\?`, `\#`, and `\@`. The characters `,` and `:` can be escaped in a key value, using single quotes. For example, this macro defines a key with legend `http` that sends a string containing `:`: `<key c="http:home,'https://'" />` For simplicity, `,` and `:` cannot be escaped in the key legend. |
