feat: close modals with esc key (#741)
Co-authored-by: Dominik Pschenitschni <mail@celement.de> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/741 Reviewed-by: konrad <k@knt.li> Co-authored-by: dpschen <dpschen@noreply.kolaente.de> Co-committed-by: dpschen <dpschen@noreply.kolaente.de>
This commit is contained in:
parent
47ad115738
commit
728dfc52e5
4 changed files with 24 additions and 12 deletions
|
|
@ -1,6 +1,11 @@
|
|||
<template>
|
||||
<div class="modal-mask">
|
||||
<div @mousedown.self="close()" class="modal-container">
|
||||
<div
|
||||
class="modal-container"
|
||||
@mousedown.self="close()"
|
||||
v-shortkey="['esc']"
|
||||
@shortkey="close()"
|
||||
>
|
||||
<div class="scrolling-content">
|
||||
<a @click="close()" class="close">
|
||||
<icon icon="times"/>
|
||||
|
|
|
|||
Reference in a new issue