John's patch for fixing mouse button press lfuns inside insets.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5106 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2002-08-26 07:52:59 +00:00
parent b9d9f6c408
commit d902fedf32
3 changed files with 18 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-08-26 Juergen Vigna <jug@sad.it>
* insettext.C (localDispatch): ditto.
* insettabular.C (localDispatch): fixed mouse pressing lfuns.
2002-08-25 John Levon <levon@movementarian.org>
* inseturl.C: elide long URLs (bug 404)

View File

@ -920,7 +920,6 @@ Inset::RESULT InsetTabular::localDispatch(FuncRequest const & cmd)
return DISPATCHED;
case LFUN_MOUSE_RELEASE:
lfunMouseRelease(cmd);
return lfunMouseRelease(cmd) ? DISPATCHED : UNDISPATCHED;
case LFUN_SHIFT_TAB:

View File

@ -1239,6 +1239,18 @@ Inset::RESULT InsetText::localDispatch(FuncRequest const & ev)
int updwhat = 0;
int updflag = false;
switch (ev.action) {
case LFUN_MOUSE_PRESS:
lfunMousePress(ev);
return DISPATCHED;
case LFUN_MOUSE_MOTION:
lfunMouseMotion(ev);
return DISPATCHED;
case LFUN_MOUSE_RELEASE:
return lfunMouseRelease(ev) ? DISPATCHED : UNDISPATCHED;
// Normal chars
case LFUN_SELFINSERT:
if (bv->buffer()->isReadonly()) {