]> git.lyx.org Git - lyx.git/blobdiff - src/Text3.cpp
Ensure the focus is returned to the editing area after a dispatch.
[lyx.git] / src / Text3.cpp
index aed8fc83b93bfbdf4f96a7b3180947eef009bce1..947975530204c41b5f0085728084277c541ba58b 100644 (file)
@@ -894,7 +894,8 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
 
        case LFUN_SET_GRAPHICS_GROUP: {
                InsetGraphics * ins = InsetGraphics::getCurrentGraphicsInset(cur);
-               if (!ins) break;
+               if (!ins)
+                       break;
 
                cur.recordUndoFullDocument();
 
@@ -2272,7 +2273,6 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
        case LFUN_BUFFER_BEGIN_SELECT:
        case LFUN_BUFFER_END_SELECT:
        case LFUN_UNICODE_INSERT:
-       case LFUN_SET_GRAPHICS_GROUP:
                // these are handled in our dispatch()
                enable = true;
                break;