More sound support added.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Maintainer: Storm Dragon <storm_dragon@stormux.org>
|
# Maintainer: Storm Dragon <storm_dragon@stormux.org>
|
||||||
|
|
||||||
pkgname=cthulhu
|
pkgname=cthulhu
|
||||||
pkgver=2025.12.28
|
pkgver=2025.12.29
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Desktop-agnostic screen reader with plugin system, forked from Orca"
|
pkgdesc="Desktop-agnostic screen reader with plugin system, forked from Orca"
|
||||||
url="https://git.stormux.org/storm/cthulhu"
|
url="https://git.stormux.org/storm/cthulhu"
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ ROLE_SOUND_ALIASES = {
|
|||||||
Atspi.Role.TOGGLE_BUTTON: ["toggle_button", "button"],
|
Atspi.Role.TOGGLE_BUTTON: ["toggle_button", "button"],
|
||||||
Atspi.Role.RADIO_BUTTON: ["radio_button", "radio"],
|
Atspi.Role.RADIO_BUTTON: ["radio_button", "radio"],
|
||||||
Atspi.Role.CHECK_BOX: ["checkbox", "check_box"],
|
Atspi.Role.CHECK_BOX: ["checkbox", "check_box"],
|
||||||
|
Atspi.Role.COMBO_BOX: ["combobox", "combo_box"],
|
||||||
}
|
}
|
||||||
|
|
||||||
ROLE_STATE_SOUND_BASES = {
|
ROLE_STATE_SOUND_BASES = {
|
||||||
|
|||||||
@@ -710,8 +710,8 @@ class SpeechGenerator(generator.Generator):
|
|||||||
if not result:
|
if not result:
|
||||||
return result
|
return result
|
||||||
|
|
||||||
if _settingsManager.getSetting('roleSoundPresentation') \
|
roleSoundPresentation = _settingsManager.getSetting('roleSoundPresentation')
|
||||||
== settings.ROLE_SOUND_PRESENTATION_SPEECH_ONLY:
|
if roleSoundPresentation == settings.ROLE_SOUND_PRESENTATION_SPEECH_ONLY:
|
||||||
return result
|
return result
|
||||||
|
|
||||||
if not _settingsManager.getSetting('enableSound'):
|
if not _settingsManager.getSetting('enableSound'):
|
||||||
@@ -721,6 +721,9 @@ class SpeechGenerator(generator.Generator):
|
|||||||
if not icon:
|
if not icon:
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
if roleSoundPresentation == settings.ROLE_SOUND_PRESENTATION_SOUND_ONLY:
|
||||||
|
return [icon]
|
||||||
|
|
||||||
return [icon] + result
|
return [icon] + result
|
||||||
|
|
||||||
def _generateCheckedState(self, obj, **args):
|
def _generateCheckedState(self, obj, **args):
|
||||||
|
|||||||
Reference in New Issue
Block a user