Skip to content
Permalink
Browse files

cleaning and minor adjustments to the code for console

  • Loading branch information
slarosa committed Sep 22, 2012
1 parent 73fcb66 commit 7e6ec9bc32f0f25c57002b8f6366b4cac45f83e3
Showing with 2 additions and 7 deletions.
  1. +2 −7 python/console_sci.py
@@ -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)
@@ -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()

0 comments on commit 7e6ec9b

Please sign in to comment.
You can’t perform that action at this time.