From 1a2e2a4d9b9056a6d8e46b7e80f7121bfa023414 Mon Sep 17 00:00:00 2001 From: daa84 Date: Mon, 3 Apr 2017 15:54:36 +0300 Subject: [PATCH] Fix #3 --- src/input.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/input.rs b/src/input.rs index e30d1a8..31d9e7a 100644 --- a/src/input.rs +++ b/src/input.rs @@ -69,11 +69,7 @@ pub fn convert_key(ev: &EventKey) -> Option { } if let Some(ch) = gdk::keyval_to_unicode(keyval) { - Some(if !state.is_empty() { - keyval_to_input_string(&ch.to_string(), state) - } else { - ch.to_string() - }) + Some(keyval_to_input_string(&ch.to_string(), state)) } else { None }