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/window.py
258 258
                    self.input.SetInsertionPoint(len(message) + 1)
259 259
        elif e.GetEventObject() == self.input:
260 260
            if key == wx.WXK_TAB:
261
                pass
261
                if self.engine.settings["options.accessibility.tab_end"]:
262
                    message = self.output.GetValue()
263
                    self.output.SetInsertionPoint(-1)
262 264

  
263 265
        if skip:
264 266
            e.Skip()
......
289 291
        message = message.decode(encoding, "replace")
290 292
        self.input.Clear()
291 293
        self.input.SetValue(message)
292
        self.input.SetInsertionPoint(len(message) + 1)
294
        self.input.SetInsertionPoint(-1)
293 295

  
294 296
    def HistoryGoDown(self):
295 297
        """Go down in the history."""
......
306 308
        message = message.decode(encoding, "replace")
307 309
        self.input.Clear()
308 310
        self.input.SetValue(message)
309
        self.input.SetInsertionPoint(len(message) + 1)
311
        self.input.SetInsertionPoint(-1)

Also available in: Unified diff