라이브 에디터 콜아웃 줄 삭제 수정

This commit is contained in:
2026-06-04 11:09:40 +09:00
parent 83f66a4b93
commit 675e6bca78
12 changed files with 111 additions and 11 deletions

View File

@@ -736,9 +736,14 @@ const onKeydown = (event) => {
if ((event.metaKey || event.ctrlKey) && event.shiftKey && event.key.toLowerCase() === 'k') {
if (props.sourceLine !== null) {
const lineContext = getCaretLineContext()
const sourceLine = resolvedEnterMode.value === 'multiline'
? props.sourceLine + lineContext.lineIndex
: props.sourceLine
event.preventDefault()
event.stopPropagation()
emit('delete-line', props.sourceLine)
emit('delete-line', sourceLine)
}
return
@@ -861,6 +866,7 @@ const onKeydown = (event) => {
if (event.key === 'Enter' && !event.shiftKey && parseSlashInput(readEditorValue())) {
event.preventDefault()
event.stopPropagation()
event.stopImmediatePropagation?.()
emit('slash-apply', {
sourceLine: props.sourceLine,
value: readEditorValue()