]> git.lyx.org Git - lyx.git/blobdiff - src/Text3.cpp
EmbeddedObjects.lyx: add hint how to force a rotation direction for rotated floats
[lyx.git] / src / Text3.cpp
index 075f619a352d7f2a91c057bb12ef3ee2ba89e976..63e523a898046346dcb076bf93e289f127190dea 100644 (file)
@@ -512,9 +512,13 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
 
        case LFUN_UP_SELECT:
        case LFUN_DOWN_SELECT:
-               needsUpdate |= cur.selHandle(select);
        case LFUN_UP:
        case LFUN_DOWN: {
+               // stop/start the selection
+               bool select = cmd.action == LFUN_DOWN_SELECT ||
+                       cmd.action == LFUN_UP_SELECT;
+               cur.selHandle(select);
+               
                // move cursor up/down
                bool up = cmd.action == LFUN_UP_SELECT || cmd.action == LFUN_UP;
                bool const successful = cur.upDownInText(up, needsUpdate);