fix: block global Ctrl+B shortcut when typing in text editor

This commit is contained in:
csr4422
2025-11-19 23:20:43 +05:30
parent 284d421ab4
commit 563d3aba85
@@ -199,6 +199,11 @@ const editor = useEditor({
editorProps: {
attributes: { class: 'outline-none' },
handleKeyDown: (view, event) => {
if (event.ctrlKey && event.key.toLowerCase() === 'b') {
event.stopPropagation();
return false;
}
if (event.ctrlKey && event.key === 'Enter') {
emit('send')
return true