Improve built-in presets (#3971)

This commit is contained in:
the1812 2023-03-05 11:17:02 +08:00
parent 812a52b2ca
commit 1a55483419
2 changed files with 23 additions and 6 deletions

View File

@ -16,8 +16,16 @@ export const plugin: PluginMetadata = {
},
}
})
addData('keymap.presets', (presetBase: Record<string, string>) => {
presetBase.toggleDanmakuList = 'shift d'
})
addData(
'keymap.presets',
(
presetBase: Record<string, string>,
builtInPresets: Record<string, Record<string, string>>,
) => {
presetBase.toggleDanmakuList = 'shift d'
builtInPresets.HTML5Player.toggleDanmakuList = ''
builtInPresets.PotPlayer.toggleDanmakuList = ''
},
)
},
}

View File

@ -17,8 +17,17 @@ export const plugin: PluginMetadata = {
},
}
})
addData('keymap.presets', (presetBase: Record<string, string>) => {
presetBase.toggleSubtitle = 'shift c'
})
addData(
'keymap.presets',
(
presetBase: Record<string, string>,
builtInPresets: Record<string, Record<string, string>>,
) => {
presetBase.toggleSubtitle = 'shift c'
builtInPresets.YouTube.toggleSubtitle = 'c'
builtInPresets.YouTube.coin = ''
builtInPresets.PotPlayer.toggleSubtitle = 'alt h'
},
)
},
}