From b670fe0da2226f7f0729694f9210c1dd675d1ea1 Mon Sep 17 00:00:00 2001 From: Spike Date: Thu, 8 May 2025 17:04:45 -0400 Subject: Clarify use of \\ per Julow in Julow#989 (#990) --- doc/Possible-key-values.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'doc') 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 `:`: `` For simplicity, `,` and `:` cannot be escaped in the key legend. -- cgit v1.2.3