feat: Mapped photo viewer controls to new hotkeys

This commit is contained in:
PartyDonut 2025-09-01 21:52:47 +02:00
parent fbd1d762d3
commit a2684d1d0a
2 changed files with 52 additions and 41 deletions

View file

@ -77,7 +77,7 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
child: InputHandler(
autoFocus: true,
keyMap: ref.watch(videoPlayerSettingsProvider.select((value) => value.currentShortcuts)),
keyMapResult: (result) => _onKey(result),
keyMapResult: _onKey,
child: PopScope(
canPop: false,
onPopInvokedWithResult: (didPop, result) {