修复mac下只能全选一次的问题
This commit is contained in:
@@ -4,27 +4,27 @@ let eventHub
|
||||
const bindKey = () => {
|
||||
mousetrap.reset()
|
||||
mousetrap.bind('shift', (event, combo) => {
|
||||
eventHub.$emit('shift_down', { event, combo })
|
||||
eventHub.$emit('key_shift_down', { event, combo })
|
||||
return false
|
||||
}, 'keydown')
|
||||
mousetrap.bind('shift', (event, combo) => {
|
||||
eventHub.$emit('shift_up', { event, combo })
|
||||
eventHub.$emit('key_shift_up', { event, combo })
|
||||
return false
|
||||
}, 'keyup')
|
||||
mousetrap.bind('mod', (event, combo) => {
|
||||
eventHub.$emit('mod_down', { event, combo })
|
||||
eventHub.$emit('key_mod_down', { event, combo })
|
||||
return false
|
||||
}, 'keydown')
|
||||
mousetrap.bind('mod', (event, combo) => {
|
||||
eventHub.$emit('mod_up', { event, combo })
|
||||
eventHub.$emit('key_mod_up', { event, combo })
|
||||
return false
|
||||
}, 'keyup')
|
||||
mousetrap.bind('mod+a', (event, combo) => {
|
||||
eventHub.$emit('mod+a_down', { event, combo })
|
||||
eventHub.$emit('key_mod+a_down', { event, combo })
|
||||
return false
|
||||
}, 'keydown')
|
||||
mousetrap.bind('mod+a', (event, combo) => {
|
||||
eventHub.$emit('mod+a_up', { event, combo })
|
||||
eventHub.$emit('key_mod+a_up', { event, combo })
|
||||
return false
|
||||
}, 'keyup')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user