[pyatspi2] Add support for locking/unlocking modifiers
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyatspi2] Add support for locking/unlocking modifiers
- Date: Sun, 18 Nov 2018 21:26:08 +0000 (UTC)
commit acf9829ca3d5e6982f6544d2771037cb3efb064b
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date: Sun Nov 18 15:24:58 2018 -0600
Add support for locking/unlocking modifiers
pyatspi/Accessibility.py | 2 ++
pyatspi/deviceevent.py | 4 ++++
pyatspi/registry.py | 2 +-
3 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/pyatspi/Accessibility.py b/pyatspi/Accessibility.py
index f564bea..f22454f 100644
--- a/pyatspi/Accessibility.py
+++ b/pyatspi/Accessibility.py
@@ -245,6 +245,8 @@ KEY_PRESSRELEASE = Atspi.KeySynthType.PRESSRELEASE
KEY_RELEASE = Atspi.KeySynthType.RELEASE
KEY_STRING = Atspi.KeySynthType.STRING
KEY_SYM = Atspi.KeySynthType.SYM
+KEY_LOCKMODIFIERS = Atspi.KeySynthType.LOCKMODIFIERS
+KEY_UNLOCKMODIFIERS = Atspi.KeySynthType.UNLOCKMODIFIERS
### cache ###
cache = Atspi.Cache
diff --git a/pyatspi/deviceevent.py b/pyatspi/deviceevent.py
index e24fd42..4d505ec 100644
--- a/pyatspi/deviceevent.py
+++ b/pyatspi/deviceevent.py
@@ -67,13 +67,17 @@ class KeySynthType(AtspiEnum):
2:'KEY_PRESSRELEASE',
3:'KEY_SYM',
4:'KEY_STRING',
+ 5:'KEY_LOCKMODIFIERS',
+ 6:'KEY_UNLOCKMODIFIERS',
}
+KEY_LOCKMODIFIERS = KeySynthType(5)
KEY_PRESS = KeySynthType(0)
KEY_PRESSRELEASE = KeySynthType(2)
KEY_RELEASE = KeySynthType(1)
KEY_STRING = KeySynthType(4)
KEY_SYM = KeySynthType(3)
+KEY_UNLOCKMODIFIERS = KeySynthType(6)
#------------------------------------------------------------------------------
diff --git a/pyatspi/registry.py b/pyatspi/registry.py
index f73ee16..639b803 100644
--- a/pyatspi/registry.py
+++ b/pyatspi/registry.py
@@ -386,7 +386,7 @@ class Registry(object):
Generates a keyboard event. One of the keycode or the keysym parameters
should be specified and the other should be None. The kind parameter is
required and should be one of the KEY_PRESS, KEY_RELEASE, KEY_PRESSRELEASE,
- KEY_SYM, or KEY_STRING.
+ KEY_SYM, KEY_STRING, KEY_LOCKMODIFIERS, or KEY_UNLOCKMODIFIERS.
@@param keycode: Hardware keycode or None
@@type keycode: integer
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]