mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 09:15:35 +03:00
* Revert "fix: disable shortcut when writting text (#4053)"
This reverts commit fd6ade2b5d.
* 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;
|
|
};
|