UPDATE: Adds cut/paste

This commit is contained in:
Nicolás Hatcher
2024-10-26 22:39:10 +02:00
committed by Nicolás Hatcher Andrés
parent dad4755b16
commit 04d8c658ab
8 changed files with 162 additions and 12 deletions

View File

@@ -31,6 +31,7 @@ interface Options {
onRedo: () => void;
onNextSheet: () => void;
onPreviousSheet: () => void;
onEscape: () => void;
root: RefObject<HTMLDivElement>;
}
@@ -212,6 +213,9 @@ const useKeyboardNavigation = (
break;
}
case "Escape": {
options.onEscape();
}
// No default
}
event.stopPropagation();