fix: prevent default on ctrl+b

This commit is contained in:
quenousimporte 2023-12-04 10:51:41 +01:00
parent 41bffbe0f3
commit 278aec4311
1 changed files with 1 additions and 0 deletions

View File

@ -2669,6 +2669,7 @@ function mainkeydownhandler()
else if (event.ctrlKey && event.key == "b" && md.selectionStart < md.selectionEnd) else if (event.ctrlKey && event.key == "b" && md.selectionStart < md.selectionEnd)
{ {
boldify(); boldify();
event.preventDefault();
} }
else if (event.ctrlKey && event.shiftKey && (event.keyCode == "40" || event.keyCode == "38")) else if (event.ctrlKey && event.shiftKey && (event.keyCode == "40" || event.keyCode == "38"))
{ {