summaryrefslogtreecommitdiffstats
path: root/src/input/key_bindings.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/key_bindings.rs')
-rw-r--r--src/input/key_bindings.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/input/key_bindings.rs b/src/input/key_bindings.rs
index be8d68d..9bc5274 100644
--- a/src/input/key_bindings.rs
+++ b/src/input/key_bindings.rs
@@ -79,9 +79,6 @@ fn map_keybindings(bindings: &[String]) -> Vec<Event> {
},
k => {
let c = k.chars().next().unwrap();
- if c.is_ascii_uppercase() {
- modifiers.insert(KeyModifiers::SHIFT);
- }
KeyCode::Char(c)
},
};
@@ -176,12 +173,4 @@ mod tests {
fn map_keybindings_key_code(binding: &str, key_code: KeyCode) {
assert_eq!(map_keybindings(&[String::from(binding)]), vec![Event::from(key_code)]);
}
-
- #[test]
- fn map_keybindings_upper_case_char() {
- assert_eq!(map_keybindings(&[String::from('A')]), vec![Event::Key(KeyEvent {
- code: KeyCode::Char('A'),
- modifiers: KeyModifiers::SHIFT
- })]);
- }
}