Fix ofd in mapper

This commit is contained in:
Merlijn Wajer 2013-05-18 22:26:18 +02:00
parent a340b28289
commit 4be3fc0b65
1 changed files with 1 additions and 2 deletions

View File

@ -70,6 +70,7 @@ class KeyMapper(object):
fd *ofd*.
"""
_type = ev.type
ofd = fd
if (fd, _type) in self._config:
typemaps = self._config[(fd, _type)]
@ -81,8 +82,6 @@ class KeyMapper(object):
ev.value = info['value'](ev.value)
else:
ev.value = ev.value
else:
ofd = fd
return ofd, ev