diff --git a/atomac/AXKeyCodeConstants.py b/atomac/AXKeyCodeConstants.py index 8c51ceb..c2db7d9 100644 --- a/atomac/AXKeyCodeConstants.py +++ b/atomac/AXKeyCodeConstants.py @@ -18,6 +18,7 @@ # Special keys TAB = '' RETURN = '' +SPACE = '' ESCAPE = '' CAPS_LOCK = '' DELETE = '' @@ -167,6 +168,7 @@ '\\': 42, '|': 42, # Pipe TAB: 48, # Tab: Shift-Tab sent for Tab + SPACE: 49, ' ': 49, # Space # Characters that on the US keyboard require use with Shift @@ -202,6 +204,7 @@ RETURN: 36, DELETE: 117, TAB: 48, + SPACE: 49, ESCAPE: 53, CAPS_LOCK: 57, NUM_LOCK: 71, diff --git a/atomac/ldtpd/keypress_actions.py b/atomac/ldtpd/keypress_actions.py index a00e4cf..d2bcb03 100644 --- a/atomac/ldtpd/keypress_actions.py +++ b/atomac/ldtpd/keypress_actions.py @@ -66,6 +66,8 @@ def _get_key_value(self, keyval): keyval="page_up" elif keyval == "pageup": keyval="page_up" + elif keyval == "esc": + keyval="escape" key="<%s>" % keyval # This will identify Modifiers if key in ["", "",