mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
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:
parent
b9d9f6c408
commit
d902fedf32
@ -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)
|
||||
|
@ -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:
|
||||
|
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user