From 0a3bf6094aa0eb2042f7197e683857e77b5daff9 Mon Sep 17 00:00:00 2001 From: mesalogo Date: Thu, 27 Aug 2026 10:14:39 +0800 Subject: [PATCH] fix: restore composer guidance in input hint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The composer placeholder had been reduced to only the message prompt, hiding send, newline, and paste guidance unless users hovered the field. The full localized keyboard guidance now appears directly in the empty text area again for both chat and image generation. Release note: 恢复聊天输入框中的发送、换行和粘贴快捷键提示,空输入框会再次直接显示完整操作说明。 --- src/renderer/src/App.test.tsx | 4 ++-- src/renderer/src/App.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/App.test.tsx b/src/renderer/src/App.test.tsx index b8979550..f215bfef 100644 --- a/src/renderer/src/App.test.tsx +++ b/src/renderer/src/App.test.tsx @@ -1163,7 +1163,7 @@ describe('App', () => { screen.getByLabelText('Message GoodBuddy') ).toHaveAttribute( 'placeholder', - 'Message GoodBuddy…' + 'Message GoodBuddy…\nEnter to send, Shift+Enter for a new line, Ctrl+V to paste an image or text' ) expect( screen.getByLabelText('Message GoodBuddy') @@ -5581,7 +5581,7 @@ describe('App', () => { ).toHaveTextContent(/^Ask$/u) expect(screen.getByLabelText('向 GoodBuddy 提问')).toHaveAttribute( 'placeholder', - '给 GoodBuddy 发消息…' + '给 GoodBuddy 发消息…\nEnter 发送,Shift+Enter 换行,Ctrl+V 粘贴图片或文本' ) expect( within(conversationSettings).getByRole('button', { diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 3a8255fb..e2241ad8 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -8908,11 +8908,11 @@ function App(): React.JSX.Element {