Skip to content

Commit

Permalink
Merge pull request #3917 from nextcloud/fix/richcontent-tribute-keyup
Browse files Browse the repository at this point in the history
fix(NcRichContenteditable): prevent tribute from opening on keyup
  • Loading branch information
nickvergessen committed Mar 23, 2023
2 parents 1dcc51d + e8711ef commit 5e0f8aa
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ export default {
@keydown.delete="onDelete"
@keydown.enter.exact="onEnter"
@keydown.ctrl.enter.exact.stop.prevent="onCtrlEnter"
@paste="onPaste" />
@paste="onPaste"
@keyup.stop.prevent.capture="onKeyUp" />
</template>

<script>
Expand Down Expand Up @@ -619,6 +620,10 @@ export default {
debouncedAutoComplete: debounce(async function(search, callback) {
this.autoComplete(search, callback)
}, 100),
onKeyUp(event) {
// prevent tribute from opening on keyup
},
},
}
</script>
Expand Down

0 comments on commit 5e0f8aa

Please sign in to comment.