Keyboard echo revised with 3 versions.
This commit is contained in:
1 parent
04e6c08fff
commit
70d447667e
36 files changed
+707
-55
No files matched your search
@@ -28,27 +28,28 @@ import (
|
||||
)
|
||||
|
||||
type Options struct {
|
||||
Reading *config.ReadingSettings
|
||||
EnableSound bool
|
||||
PlaySoundForRole bool
|
||||
PlaySoundForState bool
|
||||
RoleSoundPresentation string
|
||||
SpatializeObjectSounds bool
|
||||
SoundCueAvailable func(string) bool
|
||||
SpeakDescription bool
|
||||
ReadFullRowInGUITable bool
|
||||
SpeechVerbosityLevel int
|
||||
SpeakBlankLines bool
|
||||
SayAllStyle string
|
||||
EnableKeyEcho bool
|
||||
EnableEchoByCharacter bool
|
||||
EnableEchoByWord bool
|
||||
EnableEchoBySentence bool
|
||||
EnableAlphabeticKeys bool
|
||||
EnableNumericKeys bool
|
||||
EnablePunctuationKeys bool
|
||||
EnableSpace bool
|
||||
EnableDiacriticalKeys bool
|
||||
Reading *config.ReadingSettings
|
||||
EnableSound bool
|
||||
PlaySoundForRole bool
|
||||
PlaySoundForState bool
|
||||
RoleSoundPresentation string
|
||||
SpatializeObjectSounds bool
|
||||
SoundCueAvailable func(string) bool
|
||||
SpeakDescription bool
|
||||
ReadFullRowInGUITable bool
|
||||
SpeechVerbosityLevel int
|
||||
SpeakBlankLines bool
|
||||
SayAllStyle string
|
||||
EnableKeyEcho bool
|
||||
KeyEchoInEditFieldsOnly bool
|
||||
EnableEchoByCharacter bool
|
||||
EnableEchoByWord bool
|
||||
EnableEchoBySentence bool
|
||||
EnableAlphabeticKeys bool
|
||||
EnableNumericKeys bool
|
||||
EnablePunctuationKeys bool
|
||||
EnableSpace bool
|
||||
EnableDiacriticalKeys bool
|
||||
|
||||
PlaySoundForPositionInSet bool
|
||||
}
|
||||
@@ -249,7 +250,7 @@ func EventSpeechWithOptions(event atspi.Event, options Options) Speech {
|
||||
return Speech{Text: event.Source.Text}
|
||||
}
|
||||
case atspi.TextInsertedEvent:
|
||||
if !shouldEchoInsertion(event.Payload, options) {
|
||||
if !shouldEchoInsertion(event.Payload, insertionEchoOptions(event, options)) {
|
||||
return Speech{}
|
||||
}
|
||||
if event.Payload == " " {
|
||||
|
||||
Reference in new issue
Block a user