mirror of
https://github.com/immich-app/immich.git
synced 2024-12-26 10:50:29 +02:00
start face search when a key is pressed
This commit is contained in:
parent
ca775ab3e9
commit
759a04459e
@ -53,6 +53,14 @@
|
||||
};
|
||||
</script>
|
||||
|
||||
<svelte:window
|
||||
on:keydown={(e) => {
|
||||
if (!searchFaces && /^[\dA-Za-z]$/.test(e.key)) {
|
||||
searchFaces = true;
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
||||
<section
|
||||
transition:fly={{ x: 360, duration: 100, easing: linear }}
|
||||
class="absolute top-0 z-[2001] h-full w-[360px] overflow-x-hidden p-2 bg-immich-bg dark:bg-immich-dark-bg dark:text-immich-dark-fg"
|
||||
|
Loading…
Reference in New Issue
Block a user