Skip to content

Commit

Permalink
🚸 fix #558
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jul 10, 2020
1 parent 0198d71 commit ad56033
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@

### v3.3.6 / 2020-07-xx

* [558](https://github.com/Vanessa219/vditor/issues/558) [suggestion] shift+enter and end the lists `改进功能`
* [547](https://github.com/Vanessa219/vditor/issues/547) 文件上传 format 第一个参数 files 为空数组 `修复缺陷`
* [562](https://github.com/Vanessa219/vditor/issues/562) 为上传添加 fieldName 选项 `引入特性`
* [553](https://github.com/Vanessa219/vditor/issues/553) 子任务列表回车问题 `改进功能`
Expand Down
3 changes: 2 additions & 1 deletion src/ts/sv/processKeydown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ export const processKeydown = (vditor: IVditor, event: KeyboardEvent) => {
const space = listElement.getAttribute("data-space");
const taskMarkerElements = listElement.querySelectorAll('[data-type="task-marker"]');
// 回车
if (event.key === "Enter" && !isCtrl(event) && !event.altKey) {
if (event.key === "Enter" && !isCtrl(event) && !event.altKey && !event.shiftKey) {
// enter
if (markerElement && startIndex ===
markerElement.textContent.length + space.length + (taskMarkerElements.length > 0 ? 4 : 0)) {
let addUndoStack = true;
Expand Down

0 comments on commit ad56033

Please sign in to comment.