mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Close the labels modal on escape key
This commit is contained in:
parent
3f0c46f9f9
commit
783dc0b1f1
1 changed files with 4 additions and 0 deletions
|
|
@ -181,6 +181,10 @@ export function SetLabelsModal(props: SetLabelsModalProps): JSX.Element {
|
|||
event.preventDefault()
|
||||
props.onOpenChange(false)
|
||||
}}
|
||||
onEscapeKeyDown={(event) => {
|
||||
props.onOpenChange(false)
|
||||
event.preventDefault()
|
||||
}}
|
||||
>
|
||||
<VStack distribution="start" css={{ height: '100%' }}>
|
||||
<SpanBox css={{ pt: '0px', px: '16px', width: '100%' }}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue