mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Adding videos page hotkeys to help play and navigate videos. Adding f hotkey for all local search fields (channel/domain/etc). Focusing when opening cookie modals.
This commit is contained in:
parent
21c96d9501
commit
ad0d93714a
8 changed files with 166 additions and 14 deletions
|
|
@ -65,7 +65,7 @@ function ShortcutKeys({keys, isMac}) {
|
|||
case 'escape':
|
||||
return 'Esc';
|
||||
default:
|
||||
return part.toUpperCase();
|
||||
return part.toLowerCase();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ function ShortcutKeys({keys, isMac}) {
|
|||
{idx > 0 && ' / '}
|
||||
{seqParts.map((p, i) => (
|
||||
<React.Fragment key={i}>
|
||||
<KeyboardKey>{p.toUpperCase()}</KeyboardKey>
|
||||
<KeyboardKey>{p.toLowerCase()}</KeyboardKey>
|
||||
{i < seqParts.length - 1 && ' then '}
|
||||
</React.Fragment>
|
||||
))}
|
||||
|
|
@ -121,7 +121,7 @@ export default function HelpModal({open, onClose}) {
|
|||
const groupedShortcuts = groupShortcutsByCategory(SHORTCUTS);
|
||||
|
||||
// Order categories
|
||||
const categoryOrder = ['Search', 'General', 'Help', 'Navigation'];
|
||||
const categoryOrder = ['Search', 'General', 'Help', 'Navigation', 'Page Search', 'Video Player'];
|
||||
const orderedCategories = categoryOrder.filter(cat => groupedShortcuts[cat]);
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue