mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-11 11:07:04 +10:00
fix: return cursor to message window after send
This commit is contained in:
@@ -935,6 +935,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
|||||||
connector.sendChannelMessage(widget.channel, messageText);
|
connector.sendChannelMessage(widget.channel, messageText);
|
||||||
_textController.clear();
|
_textController.clear();
|
||||||
_cancelReply();
|
_cancelReply();
|
||||||
|
_textFieldFocusNode.requestFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
String _formatTime(DateTime time) {
|
String _formatTime(DateTime time) {
|
||||||
|
|||||||
@@ -429,6 +429,7 @@ class _ChatScreenState extends State<ChatScreen> {
|
|||||||
|
|
||||||
connector.sendMessage(widget.contact, text);
|
connector.sendMessage(widget.contact, text);
|
||||||
_textController.clear();
|
_textController.clear();
|
||||||
|
_textFieldFocusNode.requestFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
void _showPathHistory(BuildContext context) {
|
void _showPathHistory(BuildContext context) {
|
||||||
|
|||||||
@@ -168,6 +168,7 @@ class _RepeaterCliScreenState extends State<RepeaterCliScreen> {
|
|||||||
|
|
||||||
_commandController.clear();
|
_commandController.clear();
|
||||||
_historyIndex = -1;
|
_historyIndex = -1;
|
||||||
|
_commandFocusNode.requestFocus();
|
||||||
|
|
||||||
// Auto-scroll to bottom
|
// Auto-scroll to bottom
|
||||||
Future.delayed(const Duration(milliseconds: 100), () {
|
Future.delayed(const Duration(milliseconds: 100), () {
|
||||||
|
|||||||
Reference in New Issue
Block a user