mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/lyswhut/lx-music-desktop.git
synced 2026-09-20 08:04:00 +08:00
修复Linux下无法ctrl+a全选的问题
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import { isMac, isWin } from '../../common/utils'
|
||||
import { isMac } from '../../common/utils'
|
||||
|
||||
const downKeys = new Set()
|
||||
|
||||
const handleEvent = (type, event, keys) => {
|
||||
if (isWin) {
|
||||
let index = keys.indexOf('ctrl')
|
||||
if (index > -1) keys.splice(index, 1, 'mod')
|
||||
} else if (isMac) {
|
||||
if (isMac) {
|
||||
let index = keys.indexOf('meta')
|
||||
if (index > -1) keys.splice(index, 1, 'mod')
|
||||
} else {
|
||||
let index = keys.indexOf('ctrl')
|
||||
if (index > -1) keys.splice(index, 1, 'mod')
|
||||
}
|
||||
let key = keys.join('+')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user