mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-04-20 22:13:48 +00:00
fix: return cursor to message window after send
This commit is contained in:
parent
b3ad54f296
commit
096e0a4184
3 changed files with 3 additions and 0 deletions
|
|
@ -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), () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue