소스 검색

Fixes #198

Juan Pablo Caram 9 년 전
부모
커밋
b1f2b680e3
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      termwidget.py

+ 4 - 0
termwidget.py

@@ -79,6 +79,10 @@ class _ExpandableTextEdit(QTextEdit):
 
         QTextEdit.keyPressEvent(self, event)
 
+    def insertFromMimeData(self, mime_data):
+        # Paste only plain text.
+        self.insertPlainText(mime_data.text())
+
 
 class TermWidget(QWidget):
     """