mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-30 12:49:57 +00:00
Updated Layouts (markdown)
parent
676c3d7858
commit
53865ce551
1 changed files with 34 additions and 1 deletions
35
Layouts.md
35
Layouts.md
|
@ -98,6 +98,8 @@ Each label can have the following properties:
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
* `codePoints`: when multiple code points should be entered; only available for `multi_text_key` described in the _[Key classes](https://github.com/Helium314/HeliBoard/wiki/Layouts#key-classes)_ section
|
||||||
|
|
||||||
* `labelFlags`: allows specific effects
|
* `labelFlags`: allows specific effects
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
|
@ -120,12 +122,43 @@ Each label can have the following properties:
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<details>
|
||||||
|
<summary><b><i>Click to see an example with several label properties</i></b></summary>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
```json
|
||||||
|
{ "label": "a", "type": "action", "width": 0.2, "popup": { "main": { "label": "!" }, "relevant":
|
||||||
|
[
|
||||||
|
// The `b` character is displayed in the popup but this will open the settings.
|
||||||
|
{ "label": "b|!code/-301" }
|
||||||
|
] }
|
||||||
|
},
|
||||||
|
// A space is added
|
||||||
|
{ "type": "placeholder", "width": 0.2 }
|
||||||
|
// This will write the characters "a", "b" and "c" while “%” is written on the key
|
||||||
|
{ "$": "multi_text_key", "codePoints": [97, 98, 99], "label": "%", "width": 0.2 }
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
# Special labels
|
# Special labels
|
||||||
|
|
||||||
Usually the label is what is displayed on the key. However, there are some special labels:
|
Usually the label is what is displayed on the key. However, there are some special labels:
|
||||||
* Currency keys
|
* Currency keys
|
||||||
* `$$$` will be replaced by the local currency, depending on your current layout language. If you define a key with `$$$` without defining popup keys, it will get the first 4 additional currencies (see below) as popup
|
* `$$$` will be replaced by the local currency, depending on your current layout language. If you define a key with `$$$` without defining popup keys, it will get the first 4 additional currencies (see below) as popup
|
||||||
* `$$$1` - `$$$5` will be replaced by currencies available on long-pressing the currency key
|
* `$$$1` - `$$$5` will be replaced by currencies available on long-pressing the currency key
|
||||||
|
<br><br>
|
||||||
|
<details>
|
||||||
|
<summary><b><i>Click to see an example with currency key</i></b></summary>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
```json
|
||||||
|
{ "label": "$$$", "type": "function", "width": 0.1 },
|
||||||
|
{ "label": "$$$3", "type": "normal", "width": 0.1 }
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
* Functional keys (incomplete list)
|
* Functional keys (incomplete list)
|
||||||
* `alpha`: switch to alphabet keyboard (or main phone keyboard in case of phone layout)
|
* `alpha`: switch to alphabet keyboard (or main phone keyboard in case of phone layout)
|
||||||
|
@ -142,7 +175,7 @@ Usually the label is what is displayed on the key. However, there are some speci
|
||||||
* `comma`: `,` key with special popups, will adapt to language-specific comma, or display `/` in URL fields and `@` in email fields
|
* `comma`: `,` key with special popups, will adapt to language-specific comma, or display `/` in URL fields and `@` in email fields
|
||||||
* `space`: space key, with icon when using a number layout
|
* `space`: space key, with icon when using a number layout
|
||||||
* `zwnj`: Zero-width non-joiner (automatically added next to space in alphabet layout for some languages)
|
* `zwnj`: Zero-width non-joiner (automatically added next to space in alphabet layout for some languages)
|
||||||
* You can also use toolbar keys, e.g. `undo`
|
* You can also use toolbar keys, e.g. `{ "label": "undo", "type": "function" }`
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue