File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,8 @@ def clearConsole(self):
124
124
self .setFocus ()
125
125
126
126
def commandConsole (self , command ):
127
+ if not self .is_cursor_on_last_line ():
128
+ self .move_cursor_to_end ()
127
129
line , pos = self .getCurLine ()
128
130
selCmd = self .text (line ).length ()
129
131
self .setSelection (line , 4 , line , selCmd )
@@ -405,13 +407,6 @@ def keyPressEvent(self, e):
405
407
self .SendScintilla (QsciScintilla .SCI_WORDRIGHT )
406
408
else :
407
409
self .SendScintilla (QsciScintilla .SCI_CHARRIGHT )
408
- elif e .key () == Qt .Key_Delete :
409
- if self .hasSelectedText ():
410
- self .check_selection ()
411
- self .removeSelectedText ()
412
- elif self .is_cursor_on_last_line ():
413
- self .SendScintilla (QsciScintilla .SCI_CLEAR )
414
- event .accept ()
415
410
## TODO: press event for auto-completion file directory
416
411
#elif e.key() == Qt.Key_Tab:
417
412
#self.show_file_completion()
You can’t perform that action at this time.
0 commit comments