Skip to content

Commit

Permalink
agregados scripts para navegar en la lista de chats con shift y flechas
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardKessler committed Jul 14, 2022
1 parent 0ad262f commit b64bf40
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions addon/appModules/unigram.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b64bf40

Please sign in to comment.