Currently, all "enter" type keys are being mapped to XK_KP_Enter. This is bad since certain applications distinguish between the main enter key and the keypad's enter key. For instance graphical terminals (e.g. gnome-terminal) do and so do certain terminal programs such as vim (in certain cases) and man. As a result, these programs will not behave properly when they receive KP_Enter.
This can be fixed easily by simply adding a new entry to Key class in iomediator.py:
NP_ENTER = "<np_enter>"
and changing all XK_KP_Enter entries to map to Key.NP_ENTER instead of Key.ENTER in interface.py.
I'm not submitting a pull request directly since I don't have the proper dependencies to run the git version of autokey on my debian jessie system and this is a very simple fix.
Hello,
Currently, all "enter" type keys are being mapped to XK_KP_Enter. This is bad since certain applications distinguish between the main enter key and the keypad's enter key. For instance graphical terminals (e.g. gnome-terminal) do and so do certain terminal programs such as vim (in certain cases) and man. As a result, these programs will not behave properly when they receive KP_Enter.
This can be fixed easily by simply adding a new entry to
Key
class iniomediator.py
:and changing all
XK_KP_Enter
entries to map toKey.NP_ENTER
instead ofKey.ENTER
ininterface.py
.I'm not submitting a pull request directly since I don't have the proper dependencies to run the git version of autokey on my debian jessie system and this is a very simple fix.