Skip to content

Commit 19d0f5b

Browse files
committed
fix: can not input space to terminal when use chinese IME (#407) (#461)
1 parent 6b5ea88 commit 19d0f5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontend/src/components/content_value/ContentCli.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ const onTermKey = (e) => {
261261
case 'End': // move to tail of line
262262
moveInputCursorTo(Number.MAX_SAFE_INTEGER)
263263
return false
264+
case ' ': // replace space
265+
e.preventDefault()
266+
updateInput(' ')
267+
return false
264268
}
265269
}
266270
}

0 commit comments

Comments
 (0)