mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 13:20:43 +00:00
Merge pull request #63 from Kingsrook/feature/CE-938-order-release-automation
CE-938: fixed issue where modal record query was accepting shortcut k…
This commit is contained in:
@ -631,7 +631,7 @@ const RecordQuery = forwardRef(({table, usage, isModal, allowVariables, initialQ
|
|||||||
const type = (e.target as any).type;
|
const type = (e.target as any).type;
|
||||||
const validType = (type !== "text" && type !== "textarea" && type !== "input" && type !== "search");
|
const validType = (type !== "text" && type !== "textarea" && type !== "input" && type !== "search");
|
||||||
|
|
||||||
if (validType && !dotMenuOpen && !keyboardHelpOpen && !activeModalProcess)
|
if (validType && !isModal && !dotMenuOpen && !keyboardHelpOpen && !activeModalProcess)
|
||||||
{
|
{
|
||||||
if (!e.metaKey && !e.ctrlKey && e.key === "n" && table.capabilities.has(Capability.TABLE_INSERT) && table.insertPermission)
|
if (!e.metaKey && !e.ctrlKey && e.key === "n" && table.capabilities.has(Capability.TABLE_INSERT) && table.insertPermission)
|
||||||
{
|
{
|
||||||
@ -669,7 +669,7 @@ const RecordQuery = forwardRef(({table, usage, isModal, allowVariables, initialQ
|
|||||||
{
|
{
|
||||||
document.removeEventListener("keydown", down);
|
document.removeEventListener("keydown", down);
|
||||||
};
|
};
|
||||||
}, [dotMenuOpen, keyboardHelpOpen, metaData, activeModalProcess]);
|
}, [isModal, dotMenuOpen, keyboardHelpOpen, metaData, activeModalProcess]);
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
Reference in New Issue
Block a user