@keys: Improve documentation about logical keys#10963
Open
LeonMatthes wants to merge 2 commits intoslint-ui:masterfrom
Open
@keys: Improve documentation about logical keys#10963LeonMatthes wants to merge 2 commits intoslint-ui:masterfrom
LeonMatthes wants to merge 2 commits intoslint-ui:masterfrom
Conversation
tronical
reviewed
Mar 6, 2026
docs/astro/src/content/docs/reference/keyboard-input/focusscope.mdx
Outdated
Show resolved
Hide resolved
docs/astro/src/content/docs/reference/keyboard-input/overview.mdx
Outdated
Show resolved
Hide resolved
docs/astro/src/content/docs/reference/keyboard-input/overview.mdx
Outdated
Show resolved
Hide resolved
| Named keys inside `@keys(..)` are logical: `A` represents the character `a`, not a specific physical key location. This means `@keys(Control + A)` will activate on whichever key produces `a` on the user's layout, regardless of where that key sits on the keyboard. | ||
|
|
||
| The `@keys(..)` macro allows you to explicitly control this behavior for Advanced Keyboard shortcuts, if needed. | ||
| If the [`Key` namespace](#key-namespace) does not include the needed key, the @key macro also supports advanced keyboard shortcut definitions... |
Member
There was a problem hiding this comment.
Use contractions. That said: What's the trailing ...?
Suggested change
| If the [`Key` namespace](#key-namespace) does not include the needed key, the @key macro also supports advanced keyboard shortcut definitions... | |
| If the [`Key` namespace](#key-namespace) doesn't include the needed key, the `@key` macro also supports advanced keyboard shortcut definitions... |
Member
|
Note the question about the trailing |
We received a lot of feedback in issue slint-ui#102 that this differentiation was not immediately obvious before.
Co-authored-by: Simon Hausmann <hausmann@gmail.com>
1d68e0f to
624de88
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We received a lot of feedback in issue #102 that this differentiation was
not immediately obvious before.