mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
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:
parent
bd226e9e2c
commit
a678590ccd
9 changed files with 32 additions and 37 deletions
7
web/src/lib/utils/shortcut.ts
Normal file
7
web/src/lib/utils/shortcut.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
export const shouldIgnoreShortcut = (event: Event): boolean => {
|
||||
const type = (event.target as HTMLInputElement).type;
|
||||
if (['textarea', 'text'].includes(type)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue