We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c788dc6 commit dff27c8Copy full SHA for dff27c8
index.html
@@ -1179,6 +1179,8 @@ <h3>設定</h3>
1179
var scrolled = [0, 0, -1];
1180
var hljsafter;
1181
1182
+ var beforeDeletionLength = 0; // for modern mode cursor
1183
+
1184
const EDITOR_MODES = {
1185
LEGACY: 0,
1186
MODERN: 1
@@ -2251,7 +2253,7 @@ <h3>設定</h3>
2251
2253
});
2252
2254
document.getElementById("cursor").children[1].addEventListener("beforeinput", (e)=>{
2255
if (e.inputType == "deleteContentBackward") {
- var beforeDeletionLength = e.target.value.length;
2256
+ beforeDeletionLength = e.target.value.length;
2257
}
2258
console.log(e);
2259
0 commit comments