mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-22 04:12:44 +08:00
commit
313142e6f0
@ -184,15 +184,15 @@ const changeShortCut = (e, key) => {
|
|||||||
}
|
}
|
||||||
if (e.ctrlKey && e.keyCode !== 17) {
|
if (e.ctrlKey && e.keyCode !== 17) {
|
||||||
const compose = `Ctrl+${keycodes[e.keyCode].toUpperCase()}`;
|
const compose = `Ctrl+${keycodes[e.keyCode].toUpperCase()}`;
|
||||||
state.perf.shortCut[key] = compose;
|
state.shortCut[key] = compose;
|
||||||
}
|
}
|
||||||
if (e.shiftKey && e.keyCode !== 16) {
|
if (e.shiftKey && e.keyCode !== 16) {
|
||||||
const compose = `Shift+${keycodes[e.keyCode].toUpperCase()}`;
|
const compose = `Shift+${keycodes[e.keyCode].toUpperCase()}`;
|
||||||
state.perf.shortCut[key] = compose;
|
state.shortCut[key] = compose;
|
||||||
}
|
}
|
||||||
if (e.metaKey && e.keyCode !== 93) {
|
if (e.metaKey && e.keyCode !== 93) {
|
||||||
const compose = `Command+${keycodes[e.keyCode].toUpperCase()}`;
|
const compose = `Command+${keycodes[e.keyCode].toUpperCase()}`;
|
||||||
state.perf.shortCut[key] = compose;
|
state.shortCut[key] = compose;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user