perf: 任务详情窗口光标在任务描述可使用ctrl+s(command+s)保存
This commit is contained in:
parent
0bc40d1748
commit
0a6fa2431e
@ -164,6 +164,7 @@
|
|||||||
:option-full="taskOptionFull"
|
:option-full="taskOptionFull"
|
||||||
:placeholder="$L('详细描述...')"
|
:placeholder="$L('详细描述...')"
|
||||||
@on-blur="updateData('content')"
|
@on-blur="updateData('content')"
|
||||||
|
@editorSave="updateData('content')"
|
||||||
inline/>
|
inline/>
|
||||||
</div>
|
</div>
|
||||||
<Form class="items" label-position="left" label-width="auto" @submit.native.prevent>
|
<Form class="items" label-position="left" label-width="auto" @submit.native.prevent>
|
||||||
@ -798,12 +799,16 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onNameKeydown(e) {
|
onNameKeydown(e) {
|
||||||
if (e.keyCode === 13) {
|
if (e.keyCode === 83) {
|
||||||
if (e.shiftKey) {
|
if (e.metaKey || e.ctrlKey) {
|
||||||
return;
|
e.preventDefault();
|
||||||
|
this.updateData('name');
|
||||||
|
}
|
||||||
|
} else if (e.keyCode === 13) {
|
||||||
|
if (!e.shiftKey) {
|
||||||
|
e.preventDefault();
|
||||||
|
this.updateData('name');
|
||||||
}
|
}
|
||||||
e.preventDefault();
|
|
||||||
this.updateData('name');
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user