docs: add escape event handler for closing tippy, see #1282

This commit is contained in:
Philipp Kühn
2021-08-13 13:10:34 +02:00
parent bcc8234050
commit 1127f0efcb
4 changed files with 24 additions and 0 deletions

View File

@@ -110,6 +110,12 @@ export default {
})
},
onKeyDown(props) {
if (props.event.key === 'Escape') {
popup[0].hide()
return true
}
return component.ref?.onKeyDown(props)
},
onExit() {