mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 12:16:41 +00:00
fix(gui): close invite modal on escape key press
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
projectRoleTagColors,
|
||||
projectRoles,
|
||||
ref,
|
||||
useActiveKeyupListener,
|
||||
useCopy,
|
||||
useDashboard,
|
||||
useI18n,
|
||||
@@ -138,6 +139,16 @@ const clickInviteMore = () => {
|
||||
const emailField = (inputEl: typeof Input) => {
|
||||
inputEl?.$el?.focus()
|
||||
}
|
||||
|
||||
useActiveKeyupListener(
|
||||
computed(() => show),
|
||||
(e: KeyboardEvent) => {
|
||||
console.log(e.key)
|
||||
if (e.key === 'Escape') {
|
||||
emit('closed')
|
||||
}
|
||||
},
|
||||
)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user