]> git.lyx.org Git - features.git/commit
Fix and document middle mouse button paste. This is probably the last of
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Fri, 5 Jan 2007 14:40:49 +0000 (14:40 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Fri, 5 Jan 2007 14:40:49 +0000 (14:40 +0000)
commit594a589bc46be12e99c20fa7be65e713c3fabb24
tree71ba8a06ea826075155dc921d11da514b328bc54
parent63280d113f560f364141a7905b5aae487a963d84
Fix and document middle mouse button paste. This is probably the last of
the status quo fixes, I'll send a proposal how to proceed soon.

* src/CutAndPaste.[Ch]
(copySelection): Split into copySelection and copySelectionToStack

* src/text3.C
(LyXText::dispatch): Use copySelectionToStack instead of LFUN_COPY
to copy the selection to the cut buffer for two reasons:
- LFUN_COPY did not work (probably because bv.cursor() was not yet set)
- If it would work it would put the selection to the system clipboard
  which is clearly wrong.
Document why we put the selection to the stack.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16534 a592a061-630c-0410-9148-cb99ea01b6c8
src/CutAndPaste.C
src/CutAndPaste.h
src/text3.C