Show More
@@ -267,9 +267,9 b' class IPythonWidget(FrontendWidget):' | |||||
267 | """ Copy the currently selected text to the clipboard, removing prompts |
|
267 | """ Copy the currently selected text to the clipboard, removing prompts | |
268 | if possible. |
|
268 | if possible. | |
269 | """ |
|
269 | """ | |
270 | if self.layout().currentWidget() == self._page_control : |
|
270 | if self._page_control.hasFocus() : | |
271 | self._page_control.copy() |
|
271 | self._page_control.copy() | |
272 | elif self.layout().currentWidget() == self._control : |
|
272 | elif self._control.hasFocus() : | |
273 | text = self._control.textCursor().selection().toPlainText() |
|
273 | text = self._control.textCursor().selection().toPlainText() | |
274 | if text: |
|
274 | if text: | |
275 | lines = map(transform_ipy_prompt, text.splitlines()) |
|
275 | lines = map(transform_ipy_prompt, text.splitlines()) |
General Comments 0
You need to be logged in to leave comments.
Login now