Fix #3
This commit is contained in:
parent
e6c3b01cc9
commit
1a2e2a4d9b
@ -69,11 +69,7 @@ pub fn convert_key(ev: &EventKey) -> Option<String> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let Some(ch) = gdk::keyval_to_unicode(keyval) {
|
if let Some(ch) = gdk::keyval_to_unicode(keyval) {
|
||||||
Some(if !state.is_empty() {
|
Some(keyval_to_input_string(&ch.to_string(), state))
|
||||||
keyval_to_input_string(&ch.to_string(), state)
|
|
||||||
} else {
|
|
||||||
ch.to_string()
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user