mirror of
https://github.com/immich-app/immich
synced 2025-06-08 11:31:00 +00:00

* Revert "fix: disable shortcut when writting text (#4053)" This reverts commit fd6ade2b5d6ff338619fdd4d044ba64ba9368b23. * refactor: disable shortcut when writting * pr feedback * pr feedback
8 lines
206 B
TypeScript
8 lines
206 B
TypeScript
export const shouldIgnoreShortcut = (event: Event): boolean => {
|
|
const type = (event.target as HTMLInputElement).type;
|
|
if (['textarea', 'text'].includes(type)) {
|
|
return true;
|
|
}
|
|
return false;
|
|
};
|