mirror of
https://github.com/YuzuZensai/Pien-Studio.git
synced 2026-09-02 14:18:35 +00:00
♻️ refactor!: massive refactor
This commit is contained in:
@@ -11,7 +11,10 @@ type UseEditorShortcutsOptions = {
|
||||
};
|
||||
|
||||
function isEditableTarget(e: Event) {
|
||||
return e.target instanceof HTMLElement && /^(input|textarea|select)$/i.test(e.target.tagName);
|
||||
return (
|
||||
e.target instanceof HTMLElement &&
|
||||
/^(input|textarea|select)$/i.test(e.target.tagName)
|
||||
);
|
||||
}
|
||||
|
||||
export function useEditorShortcuts(options: UseEditorShortcutsOptions) {
|
||||
|
||||
Reference in New Issue
Block a user