Enrico Forestieri wrote:
On Tue, Jan 02, 2007 at 04:56:02PM +0100, Abdelrazak Younes wrote:

As a matter of fact, on Windows, I would like to mimic the X11 selection when within LyX. This is on my TODO list ;-)

You will be my hero, then ;-)

I am still not your hero? :-(


I really miss this useful feature badly. Wouldn't it be possible to make
middle mouse button on Windows paste the clipboard content right now?

Very easy to implement... see attached.

You don't know how many times I select/copy something outside LyX and then
expect to paste it by middle mouse button.

Then am I your hero now?

Abdel.
Index: text3.C
===================================================================
--- text3.C     (revision 16460)
+++ text3.C     (working copy)
@@ -875,7 +875,11 @@
 
        case LFUN_PRIMARY_SELECTION_PASTE: {
                cur.clearSelection();
+#ifdef _WIN32
+               docstring const clip = theClipboard().get();
+#else
                docstring const clip = theSelection().get();
+#endif
                if (!clip.empty()) {
                        recordUndo(cur);
                        if (cmd.argument() == "paragraph")

Reply via email to