fix: return cursor to message window after send
This commit is contained in:
1 parent
b3ad54f296
commit
096e0a4184
3 files changed
+3
No files matched your search
@@ -935,6 +935,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
connector.sendChannelMessage(widget.channel, messageText);
|
||||
_textController.clear();
|
||||
_cancelReply();
|
||||
_textFieldFocusNode.requestFocus();
|
||||
}
|
||||
|
||||
String _formatTime(DateTime time) {
|
||||
|
||||
@@ -429,6 +429,7 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
|
||||
connector.sendMessage(widget.contact, text);
|
||||
_textController.clear();
|
||||
_textFieldFocusNode.requestFocus();
|
||||
}
|
||||
|
||||
void _showPathHistory(BuildContext context) {
|
||||
|
||||
@@ -168,6 +168,7 @@ class _RepeaterCliScreenState extends State<RepeaterCliScreen> {
|
||||
|
||||
_commandController.clear();
|
||||
_historyIndex = -1;
|
||||
_commandFocusNode.requestFocus();
|
||||
|
||||
// Auto-scroll to bottom
|
||||
Future.delayed(const Duration(milliseconds: 100), () {
|
||||
|
||||
Reference in new issue
Block a user