mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Prettify doc
This commit is contained in:
parent
ded80d2fa9
commit
80aad263df
2 changed files with 21 additions and 14 deletions
|
@ -4260,16 +4260,17 @@ export async function bind(...args: string[]) {
|
|||
}
|
||||
|
||||
/**
|
||||
* Register key combination from keyboard until enter is pressed, and send it to [[bind]]
|
||||
* with provided arguments.
|
||||
* If you have alwaysqwerty enabled, it will bind commands to physical keys
|
||||
*
|
||||
* Used same as bind, but without key provided:
|
||||
* `bindkey [command]`, then press the keys you want to bind, then hit Enter.
|
||||
* `bindkey --mode=[mode] [command]` also works.
|
||||
*
|
||||
* You can execute it without arguments to see what is bound to the keys you type.
|
||||
*
|
||||
Register key combination from keyboard until enter is pressed, and send it to [[bind]]
|
||||
with provided arguments.
|
||||
|
||||
If you have alwaysqwerty enabled, it will bind commands to physical keys.
|
||||
|
||||
Used same as bind, but without key provided:
|
||||
|
||||
- `bindkey [command]`, then press the keys you want to bind, then hit Enter.
|
||||
- `bindkey --mode=[mode] [command]` also works.
|
||||
|
||||
You can execute it without arguments to see what is bound to the keys you type.
|
||||
*/
|
||||
export async function bindkey(...args: string[]) {
|
||||
let mode = "normal"
|
||||
|
|
|
@ -514,11 +514,16 @@ export class default_config {
|
|||
* Map for translating keys directly into other keys in normal-ish modes.
|
||||
* For example, if you have an entry in this config option mapping `п` to `g`,
|
||||
* then you could type `пп` instead of `gg` or `пi` instead of `gi` or `;п` instead
|
||||
* of `;g`. This was primarily useful for international users, but now you can set
|
||||
* alwaysqwerty true, which will make everything layout-independent.
|
||||
* of `;g`.
|
||||
*
|
||||
* This was primarily useful for international users, but now you can `set
|
||||
* alwaysqwerty true`, which will make everything layout-independent.
|
||||
* However, if you don't want qwerty, you can use it to map keys however you like
|
||||
* and still have layout-independent behavior. For example, you may want to map 'a' to 'q` on azerty
|
||||
* and still have layout-independent behavior.
|
||||
*
|
||||
* For example, you may want to map 'a' to 'q` on azerty
|
||||
* or 'r' to 'p' if you use dvorak.
|
||||
*
|
||||
* Note that the current implementation does not allow you to "chain" keys, for example, "a"=>"b" and "b"=>"c" for "a"=>"c". You can, however, swap or rotate keys, so "a"=>"b" and "b"=>"a" will work the way you'd expect, as will "a"=>"b" and "b"=>"c" and "c"=>"a".
|
||||
*/
|
||||
keytranslatemap = {
|
||||
|
@ -546,6 +551,7 @@ export class default_config {
|
|||
* Instead of fetching actual character which depends on selected layout,
|
||||
* use machine code of a key. Makes any keyboard work as if it is qwerty.
|
||||
* Recommended for everyone, especially multilingual.
|
||||
*
|
||||
* If you don't want qwerty, you can use keytranslatemap to map it to something else,
|
||||
* and this setting is still useful because it makes all events tied to the physical
|
||||
* keys.
|
||||
|
|
Loading…
Add table
Reference in a new issue