Close context menu on escape keypress
This commit is contained in:
parent
852df16448
commit
25f469dc28
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue