Multi-select forwarding and deleting

This commit is contained in:
Jamie Kyle 2023-03-20 15:23:53 -07:00 committed by GitHub
parent d986356eea
commit 1d549a9991
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
82 changed files with 2607 additions and 991 deletions

View file

@ -17,10 +17,14 @@ export function useEscapeHandling(handleEscape?: () => unknown): void {
event.stopPropagation();
}
};
document.addEventListener('keydown', handler);
document.addEventListener('keydown', handler, {
capture: true,
});
return () => {
document.removeEventListener('keydown', handler);
document.removeEventListener('keydown', handler, {
capture: true,
});
};
}, [handleEscape]);
}