换行/发送对调:Enter 恢复原生换行(手机软键盘可直接多行),桌面 Ctrl/⌘/⌥+Enter 发送;去掉手动插换行逻辑,手机用右侧按钮发送;placeholder 提示新快捷键
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
<input type="file" id="msg-file-input" multiple style="display:none;" onchange="ui.uploadFiles(event)">
|
||||
<svg viewBox="0 0 24 24"><path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path></svg>
|
||||
</label>
|
||||
<textarea id="msg-input" placeholder="输入消息…" rows="1"></textarea>
|
||||
<textarea id="msg-input" placeholder="输入消息,Enter 换行,Ctrl+Enter 发送" rows="1"></textarea>
|
||||
<button class="send-btn" onclick="ui.send()">
|
||||
<svg viewBox="0 0 24 24"><line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon></svg>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user