Fixup pressing enter to send message

This commit is contained in:
Sarah Jamie Lewis 2021-05-24 14:24:02 -07:00
parent 7b1acc533b
commit ca858fa309
2 changed files with 2 additions and 0 deletions

View File

@ -128,6 +128,7 @@ class _MessageViewState extends State<MessageView> {
controller: ctrlrCompose,
focusNode: focusNode,
textInputAction: TextInputAction.send,
onFieldSubmitted: _sendMessage,
decoration: InputDecoration(
enabledBorder: InputBorder.none,
focusedBorder: InputBorder.none,

View File

@ -30,6 +30,7 @@ class _CwtchTextFieldState extends State<CwtchPasswordField> {
validator: widget.validator,
obscureText: obscureText,
enableSuggestions: false,
textInputAction: TextInputAction.continueAction,
autocorrect: false,
decoration: InputDecoration(
suffixIcon: IconButton(