fix: merge revert
gitea/salix-front/pipeline/head This commit looks good
Details
gitea/salix-front/pipeline/head This commit looks good
Details
This commit is contained in:
parent
1e8c6a61f6
commit
0b3e8dedf9
|
@ -307,38 +307,6 @@ async function onKeyup(evt) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function onKeyup(evt) {
|
|
||||||
if (evt.key === 'Enter' && !('prevent-submit' in attrs)) {
|
|
||||||
const input = evt.target;
|
|
||||||
if (input.type == 'textarea' && evt.shiftKey) {
|
|
||||||
let { selectionStart, selectionEnd } = input;
|
|
||||||
input.value =
|
|
||||||
input.value.substring(0, selectionStart) +
|
|
||||||
'\n' +
|
|
||||||
input.value.substring(selectionEnd);
|
|
||||||
selectionStart = selectionEnd = selectionStart + 1;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
await save();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function onKeyup(evt) {
|
|
||||||
if (evt.key === 'Enter' && !('prevent-submit' in attrs)) {
|
|
||||||
const input = evt.target;
|
|
||||||
if (input.type == 'textarea' && evt.shiftKey) {
|
|
||||||
let { selectionStart, selectionEnd } = input;
|
|
||||||
input.value =
|
|
||||||
input.value.substring(0, selectionStart) +
|
|
||||||
'\n' +
|
|
||||||
input.value.substring(selectionEnd);
|
|
||||||
selectionStart = selectionEnd = selectionStart + 1;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
await save();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
save,
|
save,
|
||||||
isLoading,
|
isLoading,
|
||||||
|
|
Loading…
Reference in New Issue