Fixed shortcuts not working on Linux
This commit is contained in:
parent
9cc4d84580
commit
247310360d
1 changed files with 4 additions and 4 deletions
|
|
@ -45,10 +45,10 @@ export default function FlowPage({ flow }:{flow:FlowType}) {
|
||||||
|
|
||||||
const { undo, redo, canUndo, canRedo, takeSnapshot } = useUndoRedo();
|
const { undo, redo, canUndo, canRedo, takeSnapshot } = useUndoRedo();
|
||||||
|
|
||||||
const copied = useKeyPress(['Meta+c', 'Strg+c']);
|
const copied = useKeyPress(['Meta+c', 'Strg+c', 'Ctrl+c']);
|
||||||
const pasted = useKeyPress(['Meta+v', 'Strg+v']);
|
const pasted = useKeyPress(['Meta+v', 'Strg+v', 'Ctrl+v']);
|
||||||
const undoed = useKeyPress(['Meta+z', 'Strg+z']);
|
const undoed = useKeyPress(['Meta+z', 'Strg+z', 'Ctrl+z']);
|
||||||
const redoed = useKeyPress(['Meta+Shift+z', 'Strg+Shift+z']);
|
const redoed = useKeyPress(['Meta+Shift+z', 'Strg+Shift+z', 'Ctrl+Shift+z']);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if(canUndo && undoed){
|
if(canUndo && undoed){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue