Merge branch 'pop-os:master' into master

This commit is contained in:
Adam Cosner 2025-01-10 22:36:24 -08:00 • committed by GitHub
commit 9f2e554847
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 31 additions and 14 deletions

View file

@ -1742,9 +1742,11 @@ where
{
let mut editor = Editor::new(unsecured_value, &mut state.cursor);
editor.insert(
text.unwrap_or_default().chars().next().unwrap_or_default(),
);
let character =
text.unwrap_or_default().chars().next().unwrap_or_default();
if !character.is_control() {
editor.insert(character);
}
let contents = editor.contents();
let unsecured_value = Value::new(&contents);
let message = (on_input)(contents);