Fix keymap substitution

We were only performing the '-' -> ' ' substitution needed for
keymap names when updating urwid commands.  Do that for all commands.

Change-Id: I2bae39523993da12848c818e6caef259d9f9fa4a
This commit is contained in:
James E. Blair 2015-03-05 07:59:05 -08:00
parent 3750ccdf42
commit a8422949ac
1 changed files with 1 additions and 1 deletions

View File

@ -153,6 +153,7 @@ class KeyMap(object):
for command, keys in config.items():
if command == 'name':
continue
command = command.replace('-', ' ')
if type(keys) != type([]):
keys = [keys]
self.commandmap[command] = keys
@ -174,7 +175,6 @@ class KeyMap(object):
"Update the urwid command map with this keymap"
for key, commands in self.keymap.items():
for command in commands:
command = command.replace('-', ' ')
if command in URWID_COMMANDS:
urwid.command_map[key]=command