feat: display line break hints in enter mode

This commit is contained in:
RugerMc
2023-03-29 17:53:52 +08:00
parent b94607f636
commit 974c455bf9
3 changed files with 25 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
import { SubmitKey } from "../store/app";
const cn = {
WIP: "该功能仍在开发中……",
Error: {
@@ -17,7 +19,13 @@ const cn = {
Retry: "重试",
},
Typing: "正在输入…",
Input: (submitKey: string) => `输入消息,${submitKey} 发送, Shift + Enter 换行`,
Input: (submitKey: string) => {
var inputHints = `输入消息,${submitKey} 发送`;
if (submitKey === String(SubmitKey.Enter)) {
inputHints += ", Shift + Enter 换行";
}
return inputHints;
},
Send: "发送",
},
Export: {