라이브 에디터 콜아웃 줄 삭제 수정
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user