优化快捷键设置

This commit is contained in:
lyswhut
2021-12-04 20:32:22 +08:00
parent 09afd2c6f8
commit 90b67fc05c
2 changed files with 11 additions and 10 deletions
@@ -90,15 +90,16 @@ export default {
hotKeyConfig.value = config
}
const handleHotKeyFocus = async(event, info, type) => {
console.log('object')
await hotKeySetEnable(false)
window.isEditingHotKey = true
isEditHotKey = true
let config = hotKeyConfig.value[type][info.name]
newHotKey = config?.key
hotKeyTargetInput = event.target
event.target.value = t('setting__hot_key_tip_input')
const handleHotKeyFocus = (event, info, type) => {
setTimeout(async() => {
await hotKeySetEnable(false)
window.isEditingHotKey = true
isEditHotKey = true
let config = hotKeyConfig.value[type][info.name]
newHotKey = config?.key
hotKeyTargetInput = event.target
event.target.value = t('setting__hot_key_tip_input')
})
}
const handleHotKeyBlur = async(event, info, type) => {