mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-10-03 12:10:28 +00:00
fix: block global Ctrl+B shortcut when typing in text editor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user