Skip to content

Commit

Permalink
better list name
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Loftus committed Feb 27, 2024
1 parent 2447ac3 commit a4e4ec1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions utils/access-focus.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ def get_every_child(element: ax.Element):
ctx = Context()


mod.list("dynamic_children", desc="List of children accessibility elements of the active window")
mod.list("accessibility_element_name", desc="List of children accessibility elements of the active window")

@ctx.dynamic_list("user.dynamic_children")
@ctx.dynamic_list("user.accessibility_element_name")
def dynamic_children(phrase) -> dict[str,str]:
root = ui.active_window().element
elements = list(get_every_child(root))
Expand Down
5 changes: 3 additions & 2 deletions utils/access-focus.talon
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
^access {user.dynamic_children}$:
user.focus_element_by_name(dynamic_children)
# Requires Talon beta as of public Talon 0.4
^access {user.accessibility_element_name}$:
user.focus_element_by_name(accessibility_element_name)

0 comments on commit a4e4ec1

Please sign in to comment.