mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-30 12:15:16 +01:00
shift 向上选中三行后,最后的光标会乱跳
This commit is contained in:
parent
e84d05965f
commit
f22a28a73e
1 changed files with 1 additions and 4 deletions
|
|
@ -104,10 +104,7 @@ export const upSelect = (options: {
|
||||||
// 当第一行太长自然换行的情况
|
// 当第一行太长自然换行的情况
|
||||||
options.range.getBoundingClientRect().top - nodeEditableElement.getBoundingClientRect().top - parseInt(getComputedStyle(nodeEditableElement).paddingTop) < 14) {
|
options.range.getBoundingClientRect().top - nodeEditableElement.getBoundingClientRect().top - parseInt(getComputedStyle(nodeEditableElement).paddingTop) < 14) {
|
||||||
setFirstNodeRange(nodeEditableElement, options.range);
|
setFirstNodeRange(nodeEditableElement, options.range);
|
||||||
if (!isMac()) {
|
options.event.preventDefault();
|
||||||
// windows 中 shift 向上选中三行后,最后的光标会乱跳
|
|
||||||
options.event.preventDefault();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue