mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 13:00:25 +02:00
add list playback and navigation hotkeys (#1469)
This commit is contained in:
@@ -115,6 +115,11 @@ const BindingActionsSchema = z.enum([
|
||||
'volumeUp',
|
||||
'zoomIn',
|
||||
'zoomOut',
|
||||
'listPlayDefault',
|
||||
'listPlayNow',
|
||||
'listPlayNext',
|
||||
'listPlayLast',
|
||||
'listNavigateToPage',
|
||||
]);
|
||||
|
||||
const DiscordDisplayTypeSchema = z.enum(['artist', 'feishin', 'song']);
|
||||
@@ -647,6 +652,11 @@ export enum BindingActions {
|
||||
FAVORITE_PREVIOUS_REMOVE = 'favoritePreviousRemove',
|
||||
FAVORITE_PREVIOUS_TOGGLE = 'favoritePreviousToggle',
|
||||
GLOBAL_SEARCH = 'globalSearch',
|
||||
LIST_NAVIGATE_TO_PAGE = 'listNavigateToPage',
|
||||
LIST_PLAY_DEFAULT = 'listPlayDefault',
|
||||
LIST_PLAY_LAST = 'listPlayLast',
|
||||
LIST_PLAY_NEXT = 'listPlayNext',
|
||||
LIST_PLAY_NOW = 'listPlayNow',
|
||||
LOCAL_SEARCH = 'localSearch',
|
||||
MUTE = 'volumeMute',
|
||||
NAVIGATE_HOME = 'navigateHome',
|
||||
@@ -986,6 +996,11 @@ const initialState: SettingsState = {
|
||||
favoritePreviousRemove: { allowGlobal: true, hotkey: '', isGlobal: false },
|
||||
favoritePreviousToggle: { allowGlobal: true, hotkey: '', isGlobal: false },
|
||||
globalSearch: { allowGlobal: false, hotkey: 'mod+k', isGlobal: false },
|
||||
listNavigateToPage: { allowGlobal: false, hotkey: 'mod+g', isGlobal: false },
|
||||
listPlayDefault: { allowGlobal: false, hotkey: 'enter', isGlobal: false },
|
||||
listPlayLast: { allowGlobal: false, hotkey: '', isGlobal: false },
|
||||
listPlayNext: { allowGlobal: false, hotkey: '', isGlobal: false },
|
||||
listPlayNow: { allowGlobal: false, hotkey: '', isGlobal: false },
|
||||
localSearch: { allowGlobal: false, hotkey: 'mod+f', isGlobal: false },
|
||||
navigateHome: { allowGlobal: false, hotkey: '', isGlobal: false },
|
||||
next: { allowGlobal: true, hotkey: '', isGlobal: false },
|
||||
|
||||
Reference in New Issue
Block a user