Merge branch 'master' of https://github.com/Adam-Cosner/libcosmic
This commit is contained in:
commit
0b0e143fe4
3 changed files with 31 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue