Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
orca
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
62
Issues
62
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
orca
Commits
6b42da7b
Commit
6b42da7b
authored
Dec 16, 2020
by
Joanmarie Diggs
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Announce "non selected" when focus does not follow selected in a listbox
parent
ad93c93e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
+28
-2
src/orca/formatting.py
src/orca/formatting.py
+2
-2
src/orca/object_properties.py
src/orca/object_properties.py
+4
-0
src/orca/speech_generator.py
src/orca/speech_generator.py
+22
-0
No files found.
src/orca/formatting.py
View file @
6b42da7b
...
...
@@ -305,8 +305,8 @@ formatting = {
},
pyatspi
.
ROLE_LIST_ITEM
:
{
'focused'
:
'expandableState'
,
'unfocused'
:
'(labelOrName or (displayedText + allTextSelection)) + checkedStateIfCheckable + pause + expandableState + pause + positionInList + pause + listBoxItemWidgets'
,
'basicWhereAmI'
:
'label + roleName + pause + (name or displayedText) + checkedStateIfCheckable + pause + positionInList + pause + expandableState + (nodeLevel or nestingLevel) + pause'
'unfocused'
:
'(labelOrName or (displayedText + allTextSelection)) + checkedStateIfCheckable + pause +
unselectedStateIfSelectable + pause +
expandableState + pause + positionInList + pause + listBoxItemWidgets'
,
'basicWhereAmI'
:
'label + roleName + pause + (name or displayedText) + checkedStateIfCheckable + pause +
unselectedStateIfSelectable + pause +
positionInList + pause + expandableState + (nodeLevel or nestingLevel) + pause'
},
pyatspi
.
ROLE_MATH
:
{
'unfocused'
:
'math'
,
...
...
src/orca/object_properties.py
View file @
6b42da7b
...
...
@@ -527,6 +527,10 @@ STATE_PRESSED = C_("togglebutton", "pressed")
# Translators: This is a state which applies to a toggle button.
STATE_NOT_PRESSED
=
C_
(
"togglebutton"
,
"not pressed"
)
# Translators: This is a state which applies to an item or option
# in a selectable list.
STATE_UNSELECTED_LIST_ITEM
=
C_
(
"listitem"
,
"not selected"
)
# Translators: This is a state which applies to a radio button.
STATE_SELECTED_RADIO_BUTTON
=
C_
(
"radiobutton"
,
"selected"
)
...
...
src/orca/speech_generator.py
View file @
6b42da7b
...
...
@@ -1058,6 +1058,28 @@ class SpeechGenerator(generator.Generator):
return
result
def
_generateUnselectedStateIfSelectable
(
self
,
obj
,
**
args
):
if
_settingsManager
.
getSetting
(
'onlySpeakDisplayedText'
):
return
[]
if
args
.
get
(
'inMouseReview'
):
return
[]
if
not
obj
:
return
[]
if
not
(
obj
.
parent
and
'Selection'
in
pyatspi
.
listInterfaces
(
obj
.
parent
)):
return
[]
state
=
obj
.
getState
()
if
state
.
contains
(
pyatspi
.
STATE_SELECTED
):
return
[]
result
=
[
object_properties
.
STATE_UNSELECTED_LIST_ITEM
]
result
.
extend
(
self
.
voice
(
STATE
))
return
result
def
_generateUnselectedCell
(
self
,
obj
,
**
args
):
"""Returns an array of strings (and possibly voice and audio
specifications) if this is an icon within an layered pane or a
...
...
Joanmarie Diggs
@joanmarie
mentioned in issue
#171 (closed)
·
Dec 16, 2020
mentioned in issue
#171 (closed)
mentioned in issue #171
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment