mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
快捷键调整
This commit is contained in:
parent
c0cf96a4b5
commit
6a7430810b
@ -87,7 +87,8 @@ export default () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const keydownListener = (e: KeyboardEvent) => {
|
const keydownListener = (e: KeyboardEvent) => {
|
||||||
const { ctrlKey, shiftKey } = e
|
const { ctrlKey, shiftKey, metaKey } = e
|
||||||
|
|
||||||
const key = e.key.toUpperCase()
|
const key = e.key.toUpperCase()
|
||||||
|
|
||||||
if(ctrlKey && !ctrlKeyActive.value) store.commit(MutationTypes.SET_CTRL_KEY_STATE, true)
|
if(ctrlKey && !ctrlKeyActive.value) store.commit(MutationTypes.SET_CTRL_KEY_STATE, true)
|
||||||
@ -101,7 +102,7 @@ export default () => {
|
|||||||
|
|
||||||
if(!editorAreaFocus.value && !thumbnailsFocus.value) return
|
if(!editorAreaFocus.value && !thumbnailsFocus.value) return
|
||||||
|
|
||||||
if(ctrlKey && key === KEYS.C) {
|
if((ctrlKey || metaKey) && key === KEYS.C) {
|
||||||
if(disableHotkeys.value) return
|
if(disableHotkeys.value) return
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
copy()
|
copy()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user