##// END OF EJS Templates
add 4-space soft-tabs to qtconsole...
MinRK -
Show More
@@ -1158,7 +1158,10 b' class ConsoleWidget(LoggingConfigurable, QtGui.QWidget):'
1158
1158
1159 elif key == QtCore.Qt.Key_Tab:
1159 elif key == QtCore.Qt.Key_Tab:
1160 if not self._reading:
1160 if not self._reading:
1161 intercepted = not self._tab_pressed()
1161 if self._tab_pressed():
1162 # real tab-key, insert four spaces
1163 cursor.insertText(' '*4)
1164 intercepted = True
1162
1165
1163 elif key == QtCore.Qt.Key_Left:
1166 elif key == QtCore.Qt.Key_Left:
1164
1167
General Comments 0
You need to be logged in to leave comments. Login now