fix selection command

This commit is contained in:
Chris Kruining 2025-01-06 15:49:37 +01:00
parent ce7a300f48
commit 96d04a6094
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
3 changed files with 11 additions and 4 deletions

View file

@ -275,7 +275,7 @@ const Editor: Component<{ root: FileSystemDirectoryHandle }> = (props) => {
api()?.selectAll();
}, { key: 'a', modifier: Modifier.Control }),
clearSelection: createCommand('clear selection', () => {
api()?.clear();
api()?.clearSelection();
}),
delete: createCommand('delete selected items', () => {
const { selection, remove } = api() ?? {};