Show More
@@ -242,7 +242,6 b' class ConsoleWidget(editwindow.EditWindow):' | |||
|
242 | 242 | self.CmdKeyClear(ord('L'), stc.STC_SCMOD_CTRL) |
|
243 | 243 | self.CmdKeyClear(ord('T'), stc.STC_SCMOD_CTRL) |
|
244 | 244 | |
|
245 | ||
|
246 | 245 | self.SetEOLMode(stc.STC_EOL_CRLF) |
|
247 | 246 | self.SetWrapMode(stc.STC_WRAP_CHAR) |
|
248 | 247 | self.SetWrapMode(stc.STC_WRAP_WORD) |
@@ -260,6 +259,8 b' class ConsoleWidget(editwindow.EditWindow):' | |||
|
260 | 259 | # automaticaly |
|
261 | 260 | self.AutoCompSetChooseSingle(False) |
|
262 | 261 | self.AutoCompSetMaxHeight(10) |
|
262 | # XXX: this doesn't seem to have an effect. | |
|
263 | self.AutoCompSetFillUps('\n') | |
|
263 | 264 | |
|
264 | 265 | self.SetMargins(3, 3) #text is moved away from border with 3px |
|
265 | 266 | # Suppressing Scintilla margins |
@@ -377,12 +377,12 b' class WxController(ConsoleWidget, PrefilterFrontEnd):' | |||
|
377 | 377 | # Calltips |
|
378 | 378 | event.Skip() |
|
379 | 379 | self.do_calltip() |
|
380 | elif self.AutoCompActive(): | |
|
380 | elif self.AutoCompActive() and not event.KeyCode == ord('\t'): | |
|
381 | 381 | event.Skip() |
|
382 | 382 | if event.KeyCode in (wx.WXK_BACK, wx.WXK_DELETE): |
|
383 | 383 | wx.CallAfter(self._popup_completion, create=True) |
|
384 | 384 | elif not event.KeyCode in (wx.WXK_UP, wx.WXK_DOWN, wx.WXK_LEFT, |
|
385 | wx.WXK_RIGHT): | |
|
385 | wx.WXK_RIGHT, wx.WXK_ESCAPE): | |
|
386 | 386 | wx.CallAfter(self._popup_completion) |
|
387 | 387 | else: |
|
388 | 388 | # Up history |
@@ -410,6 +410,8 b' class WxController(ConsoleWidget, PrefilterFrontEnd):' | |||
|
410 | 410 | last_line = self.input_buffer.split('\n')[-1] |
|
411 | 411 | if not re.match(r'^\s*$', last_line): |
|
412 | 412 | self.complete_current_input() |
|
413 | if self.AutoCompActive(): | |
|
414 | wx.CallAfter(self._popup_completion, create=True) | |
|
413 | 415 | else: |
|
414 | 416 | event.Skip() |
|
415 | 417 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now