CTLE-214: dot menu bug fixes and updates

This commit is contained in:
Tim Chamberlain
2023-07-03 16:43:18 -05:00
parent 283c3c7413
commit e9f8684b82
5 changed files with 21 additions and 60 deletions

View File

@ -53,7 +53,7 @@ const CommandMenu = ({metaData}: Props) =>
// if a dot pressed, not from a "text" element, then toggle command menu //
///////////////////////////////////////////////////////////////////////////
const type = (e.target as any).type;
if (e.key === "." && type !== "text")
if (e.key === "." && type !== "text" && type !== "textarea" && type !== "input" && type !== "search")
{
e.preventDefault();
setDotMenuOpen(!dotMenuOpen);
@ -173,6 +173,7 @@ const CommandMenu = ({metaData}: Props) =>
))
)
}
<Command.Separator />
</Command.Group>
);
}
@ -201,6 +202,7 @@ const CommandMenu = ({metaData}: Props) =>
)
)
}
<Command.Separator />
</Command.Group>
);
}
@ -231,6 +233,7 @@ const CommandMenu = ({metaData}: Props) =>
)
)
}
<Command.Separator />
</Command.Group>
);
}
@ -281,11 +284,8 @@ const CommandMenu = ({metaData}: Props) =>
<Command.List>
<Command.Empty>No results found.</Command.Empty>
<ActionsSection />
<Command.Separator />
<TablesSection />
<Command.Separator />
<AppsSection />
<Command.Separator />
<RecentlyViewedSection />
</Command.List>
</Command.Dialog>