fix: Shift+Enter should delete selection
This commit is contained in:
parent
2369da14b3
commit
e4d1e89bec
1 changed files with 1 additions and 1 deletions
|
|
@ -284,7 +284,7 @@ class InputBar extends StatelessWidget {
|
||||||
final messageWithoutNewLine =
|
final messageWithoutNewLine =
|
||||||
controller.text.substring(0, val.selection.start) +
|
controller.text.substring(0, val.selection.start) +
|
||||||
'\n' +
|
'\n' +
|
||||||
controller.text.substring(val.selection.start);
|
controller.text.substring(val.selection.end);
|
||||||
controller.value = TextEditingValue(
|
controller.value = TextEditingValue(
|
||||||
text: messageWithoutNewLine,
|
text: messageWithoutNewLine,
|
||||||
selection: TextSelection.fromPosition(
|
selection: TextSelection.fromPosition(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue