fix: disable shortcut when writting text (#4053)

This commit is contained in:
martin 2023-09-11 12:28:41 +02:00 committed by GitHub
parent 77e38abe91
commit fd6ade2b5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 38 additions and 5 deletions

View file

@ -17,6 +17,7 @@
import Scrollbar from '../shared-components/scrollbar/scrollbar.svelte';
import ShowShortcuts from '../shared-components/show-shortcuts.svelte';
import AssetDateGroup from './asset-date-group.svelte';
import { disableShortcut } from '$lib/stores/shortcut.store';
export let isSelectionMode = false;
export let singleSelect = false;
@ -54,7 +55,7 @@
});
const handleKeyboardPress = (event: KeyboardEvent) => {
if ($isSearchEnabled) {
if ($isSearchEnabled || $disableShortcut) {
return;
}