set cursor correctly when right clicking on inset button

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26144 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2008-08-13 15:01:12 +00:00
parent 419642ad9e
commit 3d9f151e00

View File

@ -492,13 +492,13 @@ void InsetCollapsable::doDispatch(Cursor & cur, FuncRequest & cmd)
if (hitButton(cmd)) { if (hitButton(cmd)) {
switch (cmd.button()) { switch (cmd.button()) {
case mouse_button::button1: case mouse_button::button1:
case mouse_button::button3:
// Pass the command to the enclosing InsetText, // Pass the command to the enclosing InsetText,
// so that the cursor gets set. // so that the cursor gets set.
cur.undispatched(); cur.undispatched();
break; break;
case mouse_button::none: case mouse_button::none:
case mouse_button::button2: case mouse_button::button2:
case mouse_button::button3:
case mouse_button::button4: case mouse_button::button4:
case mouse_button::button5: case mouse_button::button5:
// Nothing to do. // Nothing to do.