correct typo

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5065 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-08-22 07:06:02 +00:00
parent e2ab5aa8e1
commit 1d2ac0e558
3 changed files with 15 additions and 11 deletions

View File

@ -63,12 +63,12 @@
\bind "M-m t e" "math-mutate eqnarray"
\bind "M-m t m" "math-mutate multline"
\bind "M-m c i" "tabular-feature insert-column"
\bind "M-m c i" "tabular-feature append-column"
\bind "M-m c d" "tabular-feature delete-column"
\bind "M-m c c" "tabular-feature copy-column"
\bind "M-m c s" "tabular-feature swap-column"
\bind "M-m w i" "tabular-feature insert-row"
\bind "M-m w i" "tabular-feature append-row"
\bind "M-m w d" "tabular-feature delete-row"
\bind "M-m w c" "tabular-feature copy-row"
\bind "M-m w s" "tabular-feature swap-row"

View File

@ -423,6 +423,7 @@ Inset::RESULT InsetFormulaBase::localDispatch(FuncRequest const & cmd)
case LFUN_INSERT_LABEL:
case LFUN_MATH_EXTERN:
case LFUN_TABULAR_FEATURE:
case LFUN_PASTESELECTION:
bv->lockedInsetStoreUndo(Undo::EDIT);
mathcursor->dispatch(cmd);
updateLocal(bv, true);
@ -527,15 +528,6 @@ Inset::RESULT InsetFormulaBase::localDispatch(FuncRequest const & cmd)
break;
}
/*
case LFUN_PASTESELECTION: {
string const clip = bv->getClipboard();
if (!clip.empty())
mathed_parse_normal(par_, clip);
break;
}
*/
case LFUN_PASTE:
if (was_macro)
mathcursor->macroModeClose();

View File

@ -8,6 +8,7 @@
#include "math_parser.h"
#include "funcrequest.h"
#include "debug.h"
#include "BufferView.h"
#include "frontends/Painter.h"
@ -315,6 +316,8 @@ void MathNestInset::notifyCursorLeaves()
MathInset::result_type MathNestInset::dispatch
(FuncRequest const & cmd, idx_type & idx, pos_type & pos)
{
BufferView * bv = cmd.view();
switch (cmd.action) {
case LFUN_PASTE: {
@ -328,6 +331,15 @@ MathInset::result_type MathNestInset::dispatch
return DISPATCHED;
}
case LFUN_PASTESELECTION:
return
dispatch(FuncRequest(bv, LFUN_PASTE, bv->getClipboard()), idx, pos);
case LFUN_MOUSE_PRESS:
if (cmd.button() == mouse_button::button2)
return dispatch(FuncRequest(bv, LFUN_PASTESELECTION), idx, pos);
return UNDISPATCHED;
default:
return MathInset::dispatch(cmd, idx, pos);
}