mirror of
https://github.com/immich-app/immich.git
synced 2025-11-24 23:40:45 +09: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:
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;
|
||||
};
|
||||
Reference in New Issue
Block a user