mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 16:59:41 +00:00
Add keyboard shortcut info banner to the boosting preferences section (#36506)
This commit is contained in:
@@ -139,24 +139,24 @@ export const Default = {
|
||||
Last pressed hotkey: <output>{matchedHotkey ?? 'None'}</output>
|
||||
</p>
|
||||
<p>
|
||||
Click within the dashed border and press the "<kbd>n</kbd>
|
||||
" or "<kbd>/</kbd>" key. Press "
|
||||
<kbd>Backspace</kbd>" to clear the displayed hotkey.
|
||||
Click within the dashed border and press the <kbd>n</kbd>
|
||||
or <kbd>/</kbd> key. Press
|
||||
<kbd>Backspace</kbd> to clear the displayed hotkey.
|
||||
</p>
|
||||
<p>
|
||||
Try typing a sequence, like "<kbd>g</kbd>" shortly
|
||||
followed by "<kbd>h</kbd>", "<kbd>n</kbd>", or
|
||||
"<kbd>f</kbd>"
|
||||
Try typing a sequence, like <kbd>g</kbd> shortly followed by{' '}
|
||||
<kbd>h</kbd>, <kbd>n</kbd>, or
|
||||
<kbd>f</kbd>
|
||||
</p>
|
||||
<p>
|
||||
Note that this playground doesn't support all hotkeys we use in
|
||||
the app.
|
||||
</p>
|
||||
<p>
|
||||
When a <button>Button</button> is focused, "
|
||||
When a <button>Button</button> is focused,
|
||||
<kbd>Enter</kbd>
|
||||
" should not trigger "open", but "<kbd>o</kbd>
|
||||
" should.
|
||||
should not trigger open, but <kbd>o</kbd>
|
||||
should.
|
||||
</p>
|
||||
<p>
|
||||
When an input element is focused, hotkeys should not interfere with
|
||||
|
||||
@@ -524,3 +524,7 @@ a.sparkline {
|
||||
opacity: 0.25;
|
||||
}
|
||||
}
|
||||
|
||||
kbd {
|
||||
background-color: color.change($ui-highlight-color, $alpha: 0.1);
|
||||
}
|
||||
|
||||
@@ -488,6 +488,14 @@ body,
|
||||
}
|
||||
}
|
||||
|
||||
kbd {
|
||||
font-family: Courier, monospace;
|
||||
background-color: color.change($ui-secondary-color, $alpha: 0.1);
|
||||
padding: 4px;
|
||||
padding-bottom: 2px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.filters {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
@@ -755,6 +755,12 @@ code {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.hidden-on-touch-devices {
|
||||
@media screen and (pointer: coarse) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
color: $darker-text-color;
|
||||
|
||||
Reference in New Issue
Block a user