Fix #314 - Numpad enter should send message
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
7bf2e15009
commit
dab09c6acb
|
@ -376,9 +376,9 @@ class _MessageViewState extends State<MessageView> {
|
|||
}
|
||||
|
||||
// Send the message if enter is pressed without the shift key...
|
||||
void handleKeyPress(event) {
|
||||
var data = event.data as RawKeyEventData;
|
||||
if (data.logicalKey == LogicalKeyboardKey.enter && !event.isShiftPressed) {
|
||||
void handleKeyPress(RawKeyEvent event) {
|
||||
var data = event.data;
|
||||
if ((data.logicalKey == LogicalKeyboardKey.enter && !event.isShiftPressed) || data.logicalKey == LogicalKeyboardKey.numpadEnter && !event.isShiftPressed) {
|
||||
_sendMessage();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue