Make '.' not open command menu in input type=number fields

This commit is contained in:
2023-07-10 14:54:00 -05:00
parent 840b870e94
commit 50b2330c8d

View File

@ -78,7 +78,7 @@ const CommandMenu = ({metaData}: Props) =>
// if a dot pressed, not from a "text" element, then toggle command menu // // if a dot pressed, not from a "text" element, then toggle command menu //
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
const type = (e.target as any).type; const type = (e.target as any).type;
if (type !== "text" && type !== "textarea" && type !== "input" && type !== "search") if (type !== "text" && type !== "textarea" && type !== "input" && type !== "search" && type !== "number")
{ {
if (e.key === "." && !keyboardHelpOpen) if (e.key === "." && !keyboardHelpOpen)
{ {