mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
shift 向上选中三行后,最后的光标会乱跳
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user