This commit is contained in:
daa84 2017-04-03 15:54:36 +03:00
parent e6c3b01cc9
commit 1a2e2a4d9b

View File

@ -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
} }