]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetERT.cpp
Cleanup mouse/selection/context-menu interactions.
[lyx.git] / src / insets / InsetERT.cpp
index d0114141fafe70c349000c0d49bd7e283f393439..ade0a22f49c6481f72be6a7b8a5e30d1856aadee 100644 (file)
@@ -107,16 +107,6 @@ void InsetERT::doDispatch(Cursor & cur, FuncRequest & cmd)
        Layout const layout = bp.documentClass().emptyLayout();
        //lyxerr << "\nInsetERT::doDispatch (begin): cmd: " << cmd << endl;
        switch (cmd.action) {
-
-       case LFUN_MOUSE_PRESS:
-               if (cmd.button() != mouse_button::button3)
-                       InsetCollapsable::doDispatch(cur, cmd);
-               else
-                       // This makes the cursor leave the
-                       // inset when it collapses on mouse-3
-                       cur.undispatched();
-               break;
-
        case LFUN_QUOTE_INSERT: {
                // We need to bypass the fancy quotes in Text
                FuncRequest f(LFUN_SELF_INSERT, "\"");