From 25f469dc287aedf62dd6257c6e17869fa1dd708e Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 26 May 2023 10:43:25 +0100 Subject: [PATCH] Close context menu on escape keypress --- .../src/components/grid/overlays/KeyboardManager.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/frontend-core/src/components/grid/overlays/KeyboardManager.svelte b/packages/frontend-core/src/components/grid/overlays/KeyboardManager.svelte index 6d16acc7c5..a210e125ff 100644 --- a/packages/frontend-core/src/components/grid/overlays/KeyboardManager.svelte +++ b/packages/frontend-core/src/components/grid/overlays/KeyboardManager.svelte @@ -14,6 +14,7 @@ dispatch, selectedRows, config, + menu, } = getContext("grid") const ignoredOriginSelectors = [ @@ -61,6 +62,7 @@ } else { $focusedCellId = null } + menu.actions.close() return } else if (e.key === "Tab") { e.preventDefault()