mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix: disable shortcut when writting text (#4053)
This commit is contained in:
parent
77e38abe91
commit
fd6ade2b5d
5 changed files with 38 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue