优化快捷键设置
parent
09afd2c6f8
commit
90b67fc05c
|
@ -40,7 +40,7 @@ export default {
|
||||||
})
|
})
|
||||||
dom_mask.classList.add('hide')
|
dom_mask.classList.add('hide')
|
||||||
} */
|
} */
|
||||||
document.getElementById('root').style.display = 'block'
|
dom_root.style.display = 'block'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,15 +90,16 @@ export default {
|
||||||
hotKeyConfig.value = config
|
hotKeyConfig.value = config
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleHotKeyFocus = async(event, info, type) => {
|
const handleHotKeyFocus = (event, info, type) => {
|
||||||
console.log('object')
|
setTimeout(async() => {
|
||||||
await hotKeySetEnable(false)
|
await hotKeySetEnable(false)
|
||||||
window.isEditingHotKey = true
|
window.isEditingHotKey = true
|
||||||
isEditHotKey = true
|
isEditHotKey = true
|
||||||
let config = hotKeyConfig.value[type][info.name]
|
let config = hotKeyConfig.value[type][info.name]
|
||||||
newHotKey = config?.key
|
newHotKey = config?.key
|
||||||
hotKeyTargetInput = event.target
|
hotKeyTargetInput = event.target
|
||||||
event.target.value = t('setting__hot_key_tip_input')
|
event.target.value = t('setting__hot_key_tip_input')
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleHotKeyBlur = async(event, info, type) => {
|
const handleHotKeyBlur = async(event, info, type) => {
|
||||||
|
|
Loading…
Reference in New Issue