shift 向上选中三行后,最后的光标会乱跳

This commit is contained in:
Vanessa 2024-10-13 22:55:11 +08:00
parent e84d05965f
commit f22a28a73e

View file

@ -104,10 +104,7 @@ export const upSelect = (options: {
// 当第一行太长自然换行的情况
options.range.getBoundingClientRect().top - nodeEditableElement.getBoundingClientRect().top - parseInt(getComputedStyle(nodeEditableElement).paddingTop) < 14) {
setFirstNodeRange(nodeEditableElement, options.range);
if (!isMac()) {
// windows 中 shift 向上选中三行后,最后的光标会乱跳
options.event.preventDefault();
}
options.event.preventDefault();
}
return;
}