fix: prevent default on ctrl+b
This commit is contained in:
parent
41bffbe0f3
commit
278aec4311
1
main.js
1
main.js
|
@ -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"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue