Mercurial > hg > octave-nkf
changeset 17659:8680768efa8a
Enable copy of selected news browser text
* libgui/src/news-dock-widget.cc, libgui/src/news-dock-widget.h
(news_doc_widget::copyClipboard): New function.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Mon, 14 Oct 2013 14:57:54 -0400 |
parents | 0c5f50706ba3 |
children | 516e1fa636ee |
files | libgui/src/news-dock-widget.cc libgui/src/news-dock-widget.h |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/news-dock-widget.cc +++ b/libgui/src/news-dock-widget.cc @@ -113,6 +113,15 @@ } void +news_dock_widget::copyClipboard () +{ + if (browser->hasFocus ()) + { + browser->copy (); + } +} + +void news_reader::process (void) { // Run this part in a separate thread so Octave can continue to run