refactor(web): disable shortcut when writting (#4057)

* Revert "fix: disable shortcut when writting text (#4053)"

This reverts commit fd6ade2b5d.

* refactor: disable shortcut when writting

* pr feedback

* pr feedback
This commit is contained in:
martin
2023-09-12 16:26:53 +02:00
committed by GitHub
parent bd226e9e2c
commit a678590ccd
9 changed files with 32 additions and 37 deletions

View File

@@ -17,7 +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';
import { shouldIgnoreShortcut } from '$lib/utils/shortcut';
export let isSelectionMode = false;
export let singleSelect = false;
@@ -55,7 +55,7 @@
});
const handleKeyboardPress = (event: KeyboardEvent) => {
if ($isSearchEnabled || $disableShortcut) {
if ($isSearchEnabled || shouldIgnoreShortcut(event)) {
return;
}