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:
Roland 2026-02-23 17:29:09 -07:00
parent 21c96d9501
commit ad0d93714a
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
8 changed files with 166 additions and 14 deletions

View file

@ -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 (