From b64bf40256ba8cecf180aaaa2e45cdea2b80ec81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerardo=20K=C3=A9ssler?= Date: Thu, 14 Jul 2022 15:05:29 -0300 Subject: [PATCH] agregados scripts para navegar en la lista de chats con shift y flechas --- addon/appModules/unigram.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/addon/appModules/unigram.py b/addon/appModules/unigram.py index 065a72f..88b671b 100644 --- a/addon/appModules/unigram.py +++ b/addon/appModules/unigram.py @@ -124,6 +124,28 @@ def event_NVDAObject_init(self, obj): except: pass + @script(gesture="kb:upArrow") + def script_chatUp(self, gesture): + focus = api.getFocusObject() + try: + if focus.role == getRole('CHECKBOX') and focus.UIAAutomationId == '': + KeyboardInputGesture.fromName('shift+upArrow').send() + else: + gesture.send() + except: + pass + + @script(gesture="kb:downArrow") + def script_chatUp(self, gesture): + focus = api.getFocusObject() + try: + if focus.role == getRole('CHECKBOX') and focus.UIAAutomationId == '': + KeyboardInputGesture.fromName('shift+downArrow').send() + else: + gesture.send() + except: + pass + @script( category=category, # Translators: DescripciĆ³n del elemento en el diĆ”logo gestos de entrada