This commit is contained in:
Kovid Goyal 2014-10-08 16:20:09 +05:30
parent edeb8b90bb
commit 81bb962465

View File

@ -387,6 +387,7 @@ class EditorWidget(QWebView): # {{{
Qt.Key_Tab, Qt.Key_Escape, Qt.Key_Backtab):
if (ev.key() == Qt.Key_Tab and ev.modifiers() & Qt.ControlModifier and ev.type() == ev.KeyPress):
self.exec_command('insertHTML', '<span style="white-space:pre">\t</span>')
ev.accept()
return True
ev.ignore()
return False