abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorSpike2025-05-08 17:04:45 -0400
committerGitHub2025-05-08 23:04:45 +0200
commitb670fe0da2226f7f0729694f9210c1dd675d1ea1 (patch)
tree659a142e597558fbc6d623fd930de151da1f66df
parent32e82d6791dfbd2376d3fa50e99ac258582b433d (diff)
downloadunexpected-keyboard-b670fe0da2226f7f0729694f9210c1dd675d1ea1.tar.gz
unexpected-keyboard-b670fe0da2226f7f0729694f9210c1dd675d1ea1.zip
Clarify use of \\ per Julow in Julow#989 (#990)
-rw-r--r--doc/Possible-key-values.md3
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`
-`\` | `\\`
`&` | `&`
`<` | `&lt;`
`>` | `&gt;`
`"` | `&quot;`
-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.