mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-04 16:09:59 +00:00
fix(ui): stop question mark propagation (#2209)
This commit is contained in:
parent
a08d9d147c
commit
2506c02c39
1 changed files with 6 additions and 0 deletions
|
@ -200,6 +200,11 @@ defineExpose({
|
|||
},
|
||||
})
|
||||
|
||||
function stopQuestionMarkPropagation(e: KeyboardEvent) {
|
||||
if (e.key === '?')
|
||||
e.stopImmediatePropagation()
|
||||
}
|
||||
|
||||
onDeactivated(() => {
|
||||
clearEmptyDrafts()
|
||||
})
|
||||
|
@ -272,6 +277,7 @@ onDeactivated(() => {
|
|||
:editor="editor"
|
||||
flex max-w-full
|
||||
:class="shouldExpanded ? 'min-h-30 md:max-h-[calc(100vh-200px)] sm:max-h-[calc(100vh-400px)] max-h-35 of-y-auto overscroll-contain' : ''"
|
||||
@keydown="stopQuestionMarkPropagation"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue