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