Adding a hotkey to jump to the currently playing song (only works without pagination) (#2024)

This commit is contained in:
Norman
2026-05-13 17:08:05 -07:00
committed by GitHub
parent 27a62a2a02
commit 74939c6417
5 changed files with 25 additions and 0 deletions
+3
View File
@@ -160,6 +160,7 @@ const BindingActionsSchema = z.enum([
'listPlayNext',
'listPlayLast',
'listNavigateToPage',
'listShowPlayingSong',
]);
const DiscordDisplayTypeSchema = z.enum(['artist', 'feishin', 'song']);
@@ -763,6 +764,7 @@ export enum BindingActions {
LIST_PLAY_LAST = 'listPlayLast',
LIST_PLAY_NEXT = 'listPlayNext',
LIST_PLAY_NOW = 'listPlayNow',
LIST_SHOW_PLAYING_SONG = 'listShowPlayingSong',
LOCAL_SEARCH = 'localSearch',
MUTE = 'volumeMute',
NAVIGATE_HOME = 'navigateHome',
@@ -1217,6 +1219,7 @@ const initialState: SettingsState = {
listPlayLast: { allowGlobal: false, hotkey: '', isGlobal: false },
listPlayNext: { allowGlobal: false, hotkey: '', isGlobal: false },
listPlayNow: { allowGlobal: false, hotkey: '', isGlobal: false },
listShowPlayingSong: { allowGlobal: false, hotkey: 'mod+l', isGlobal: false },
localSearch: { allowGlobal: false, hotkey: 'mod+f', isGlobal: false },
navigateHome: { allowGlobal: false, hotkey: '', isGlobal: false },
next: { allowGlobal: true, hotkey: '', isGlobal: false },