Project

Profile

Help

Revision 9083fa1b

Added by Vincent Le Goff almost 4 years ago

Add the setting to go to the end of the output on pressing tab

View differences:

src/ui/dialogs/preferences.py
238 238
        sizer = wx.GridBagSizer(15, 15)
239 239
        self.SetSizer(sizer)
240 240

  
241
        # Tabbing
242
        self.tab_end = wx.CheckBox(self, label=t("ui.dialog.tab_end"))
243
        self.tab_end.SetValue(settings["options.accessibility.tab_end"])
244

  
241 245
        # TTS preferendces
242 246
        self.TTS_on = wx.CheckBox(self, label=t("ui.dialog.TTS.on"))
243 247
        self.TTS_on.SetValue(settings["options.TTS.on"])
......
245 249
        self.TTS_outside.SetValue(settings["options.TTS.outside"])
246 250

  
247 251
        # Append to the sizer
248
        sizer.Add(self.TTS_on, pos=(0, 0))
249
        sizer.Add(self.TTS_outside, pos=(0, 1))
252
        sizer.Add(self.tab_end, pos=(0, 0))
253
        sizer.Add(self.TTS_on, pos=(0, 1))
254
        sizer.Add(self.TTS_outside, pos=(0, 2))
250 255

  
251 256

  
252 257
class PreferencesTabs(wx.Notebook):
......
307 312
        old_language = settings["options.general.language"]
308 313
        settings["options.general.language"] = new_language
309 314
        settings["options.general.encoding"] = encoding
315
        tab_end = accessibility.tab_end.GetValue()
316
        settings["options.accessibility.tab_end"] = tab_end
310 317
        settings["options.TTS.on"] = accessibility.TTS_on.GetValue()
311 318
        settings["options.TTS.outside"] = accessibility.TTS_outside.GetValue()
312 319
        settings["options"].write()

Also available in: Unified diff