noop other identical keys
moparisthebest/rusty-keys/pipeline/head This commit looks good Details

This commit is contained in:
Travis Burtrum 2021-09-25 02:04:34 -04:00
parent 527ab97a04
commit b0543d3f93
1 changed files with 3 additions and 1 deletions

View File

@ -169,7 +169,9 @@ impl<K, T, E, R> KeyMaps<K, T, E, R>
let mut keymap = CodeKeyMap::new();
let mut i: usize = 0;
for key_code in v {
keymap.map(base_keymap[i], key_code);
if base_keymap[i] != key_code {
keymap.map(base_keymap[i], key_code);
}
i = i + 1;
if i > base_keymap.len() {
panic!("all keymaps must be the same length, keymap index 0 length: {}, index {} length: {},", base_keymap.len(), x, i);