Fix non ascii input
This commit is contained in:
parent
b4deb823aa
commit
18fe7b9bbc
@ -23,7 +23,7 @@ pub fn keyval_to_input_string(val: &str, state: gdk::ModifierType) -> String {
|
||||
|
||||
input.push_str(val);
|
||||
|
||||
if input.len() > 1 {
|
||||
if input.chars().count() > 1 {
|
||||
format!("<{}>", input)
|
||||
} else {
|
||||
input
|
||||
|
Loading…
Reference in New Issue
Block a user