Commit 84fc2a5b authored by nick zheng's avatar nick zheng

chore: 应用提问输入框支持换行

parent 271d5e1c
......@@ -152,7 +152,7 @@ common_module:
dialogue_module:
continue_question_message: 'You can keep asking questions'
empty_message_content: '[Empty content]'
question_input_placeholder: 'Please enter your question to ask'
question_input_placeholder: 'Please enter your question to ask (press enter+shift to wrap lines)'
generate_warning_message: 'The above content is generated by AI and is for reference only'
clear_message_popover_message: 'Clear history session'
clear_message_dialog_title: 'Are you sure you want to clear the conversation?'
......
......@@ -151,7 +151,7 @@ common_module:
dialogue_module:
continue_question_message: '你可以继续提问'
empty_message_content: '[空内容]'
question_input_placeholder: '请输入你的问题进行提问'
question_input_placeholder: '请输入你的问题进行提问(按enter+shift键可换行)'
generate_warning_message: '以上内容均由AI生成,仅供参考'
clear_message_popover_message: '清空历史会话'
clear_message_dialog_title: '确认要清空对话吗?'
......
......@@ -151,7 +151,7 @@ common_module:
dialogue_module:
continue_question_message: '你可以繼續提問'
empty_message_content: '[空內容]'
question_input_placeholder: '請輸入你的問題進行提問'
question_input_placeholder: '請輸入你的問題進行提問(按enter+shift鍵可換行)'
generate_warning_message: '以上內容均由AI生成,僅供參考'
clear_message_popover_message: '清空歷史會話'
clear_message_dialog_title: '確認要清空對話嗎?'
......
......@@ -101,7 +101,7 @@ function messageItemFactory() {
}
function handleInputMessageEnter(event: KeyboardEvent) {
if (event.key === 'Enter') {
if (event.key === 'Enter' && !event.shiftKey) {
event.preventDefault()
handleQuestionSubmit()
}
......
......@@ -155,7 +155,7 @@ function messageItemFactory(): ConversationMessageItem {
}
function handleInputMessageEnter(event: KeyboardEvent) {
if (event.key === 'Enter') {
if (event.key === 'Enter' && !event.shiftKey) {
event.preventDefault()
handleMessageSend()
}
......
......@@ -148,7 +148,7 @@ function messageItemFactory(): ConversationMessageItem {
}
function handleInputMessageEnter(event: KeyboardEvent) {
if (event.key === 'Enter') {
if (event.key === 'Enter' && !event.shiftKey) {
event.preventDefault()
handleMessageSend()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment