mirror of
https://gitee.com/dromara/go-view.git
synced 2024-12-02 11:48:36 +08:00
fix: 空格热键导致ctrl 无法多选组件
This commit is contained in:
parent
f64cd4dcf1
commit
117b9d0114
@ -281,12 +281,12 @@ export const setKeyboardDressShow = (keyCode?: number) => {
|
||||
const dom = document.getElementById('keyboard-dress-show')
|
||||
if (!dom) return
|
||||
if (!keyCode) {
|
||||
window.onKeySpacePressHold?.(false)
|
||||
if (keyCode == 32) window.onKeySpacePressHold?.(false)
|
||||
dom.innerText = ''
|
||||
return
|
||||
}
|
||||
if (keyCode && code.has(keyCode)) {
|
||||
window.onKeySpacePressHold?.(true)
|
||||
if (keyCode == 32) window.onKeySpacePressHold?.(true)
|
||||
dom.innerText = `按下了「${code.get(keyCode)}」键`
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user