Skip to content

Commit

Permalink
cleaning and minor adjustments to the code for console
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Sep 22, 2012
1 parent 73fcb66 commit 7e6ec9b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions python/console_sci.py
Expand Up @@ -124,6 +124,8 @@ def clearConsole(self):
self.setFocus()

def commandConsole(self, command):
if not self.is_cursor_on_last_line():
self.move_cursor_to_end()
line, pos = self.getCurLine()
selCmd= self.text(line).length()
self.setSelection(line, 4, line, selCmd)
Expand Down Expand Up @@ -405,13 +407,6 @@ def keyPressEvent(self, e):
self.SendScintilla(QsciScintilla.SCI_WORDRIGHT)
else:
self.SendScintilla(QsciScintilla.SCI_CHARRIGHT)
elif e.key() == Qt.Key_Delete:
if self.hasSelectedText():
self.check_selection()
self.removeSelectedText()
elif self.is_cursor_on_last_line():
self.SendScintilla(QsciScintilla.SCI_CLEAR)
event.accept()
## TODO: press event for auto-completion file directory
#elif e.key() == Qt.Key_Tab:
#self.show_file_completion()
Expand Down

0 comments on commit 7e6ec9b

Please sign in to comment.