mirror of
https://github.com/immich-app/immich.git
synced 2025-01-10 13:56:47 +01:00
a678590ccd
* Revert "fix: disable shortcut when writting text (#4053)"
This reverts commit fd6ade2b5d
.
* refactor: disable shortcut when writting
* pr feedback
* pr feedback
7 lines
206 B
TypeScript
7 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;
|
|
};
|