|
1 | 1 | # -*- coding: UTF-8 -*- |
2 | 2 | # A part of NonVisual Desktop Access (NVDA) |
3 | | -# Copyright (C) 2006-2021 NV Access Limited, Peter Vágner, Aleksey Sadovoy, |
| 3 | +# Copyright (C) 2006-2022 NV Access Limited, Peter Vágner, Aleksey Sadovoy, |
4 | 4 | # Rui Batista, Joseph Lee, Heiko Folkerts, Zahari Yurukov, Leonard de Ruijter, |
5 | 5 | # Derek Riemer, Babbage B.V., Davy Kager, Ethan Holliger, Bill Dengler, Thomas Stivers, |
6 | 6 | # Julien Cochuyt, Peter Vágner, Cyrille Bougot, Mesar Hameed, Łukasz Golonka, Aaron Cannon, |
@@ -3572,6 +3572,18 @@ def makeSettings(self, settingsSizer): |
3572 | 3572 | except: |
3573 | 3573 | index=0 |
3574 | 3574 | self.focusContextPresentationList.SetSelection(index) |
| 3575 | + |
| 3576 | + self.brailleInterruptSpeechCombo: nvdaControls.FeatureFlagCombo = sHelper.addLabeledControl( |
| 3577 | + labelText=_( |
| 3578 | + # Translators: This is a label for a combo-box in the Braille settings panel. |
| 3579 | + "I&nterrupt speech while scrolling" |
| 3580 | + ), |
| 3581 | + wxCtrlClass=nvdaControls.FeatureFlagCombo, |
| 3582 | + keyPath=["braille", "interruptSpeechWhileScrolling"], |
| 3583 | + conf=config.conf, |
| 3584 | + ) |
| 3585 | + self.bindHelpEvent("BrailleSettingsInterruptSpeech", self.brailleInterruptSpeechCombo) |
| 3586 | + |
3575 | 3587 | if gui._isDebug(): |
3576 | 3588 | log.debug("Finished making settings, now at %.2f seconds from start"%(time.time() - startTime)) |
3577 | 3589 |
|
@@ -3600,6 +3612,7 @@ def onSave(self): |
3600 | 3612 | config.conf["braille"]["readByParagraph"] = self.readByParagraphCheckBox.Value |
3601 | 3613 | config.conf["braille"]["wordWrap"] = self.wordWrapCheckBox.Value |
3602 | 3614 | config.conf["braille"]["focusContextPresentation"] = self.focusContextPresentationValues[self.focusContextPresentationList.GetSelection()] |
| 3615 | + self.brailleInterruptSpeechCombo.saveCurrentValueToConf() |
3603 | 3616 |
|
3604 | 3617 | def onShowCursorChange(self, evt): |
3605 | 3618 | self.cursorBlinkCheckBox.Enable(evt.IsChecked()) |
|
0 commit comments