]> git.lyx.org Git - features.git/commitdiff
* insettabular.C (doDispatch):
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 22 May 2006 13:11:57 +0000 (13:11 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 22 May 2006 13:11:57 +0000 (13:11 +0000)
do not mark the cursor undispatched after mouse (button 3) press
(prevents the cursor from leaving the tabular when opening the
dialog).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13906 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/insettabular.C

index 8e597896ff14f952fbdf19ca447db218cbd6aca3..25d3680128baddb64fa2ada50cc03d0eefc44096 100644 (file)
@@ -473,9 +473,6 @@ void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd)
                        break;
                }
 
-               // we'll pop up the table dialog on release
-               if (cmd.button() == mouse_button::button3)
-                       cur.undispatched();
                break;
 
        case LFUN_MOUSE_MOTION:
@@ -493,8 +490,10 @@ void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd)
 
        case LFUN_MOUSE_RELEASE:
                //lyxerr << "# InsetTabular::MouseRelease\n" << bvcur << endl;
-               if (cmd.button() == mouse_button::button3)
+               if (cmd.button() == mouse_button::button3) {
+                       bvcur.setCursor(cur);
                        InsetTabularMailer(*this).showDialog(&cur.bv());
+               }
                break;
 
        case LFUN_CELL_BACKWARD: