Skip to content

Commit

Permalink
fix(textbox): fix enter not working in multiline textbox
Browse files Browse the repository at this point in the history
  • Loading branch information
ramezgerges committed Apr 20, 2024
1 parent 1097f65 commit f4aac4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI.Runtime.Skia.X11/X11KeyboardInputSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ internal void ProcessKeyboardEvent(XKeyEvent keyEvent, bool pressed)
}

var symbols = System.Text.Encoding.UTF8.GetString(buffer, nbytes); // According to the docs, this should be ISO Latin-1 or ASCII
if (string.IsNullOrEmpty(symbols) || char.IsControl(symbols[0]))
if (string.IsNullOrEmpty(symbols) || (symbols != "\r" && char.IsControl(symbols[0])))
{
symbols = null;
}
Expand Down

0 comments on commit f4aac4f

Please sign in to comment.