mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
* src/insets/insetert.C
(getStatus): enable LFUN_QUOTE (doDispatch): handle LFUN_QUOTE directly (fixes bug 2429) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13501 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b9ff894f8b
commit
47d428cfe2
@ -226,6 +226,12 @@ void InsetERT::doDispatch(LCursor & cur, FuncRequest & cmd)
|
||||
//lyxerr << "\nInsetERT::doDispatch (begin): cmd: " << cmd << endl;
|
||||
switch (cmd.action) {
|
||||
|
||||
case LFUN_QUOTE: {
|
||||
// We need to bypass the fancy quotes in LyXText
|
||||
FuncRequest f(LFUN_SELFINSERT, "\"");
|
||||
dispatch(cur, f);
|
||||
break;
|
||||
}
|
||||
case LFUN_INSET_MODIFY: {
|
||||
InsetCollapsable::CollapseStatus st;
|
||||
InsetERTMailer::string2params(cmd.argument, st);
|
||||
@ -354,7 +360,6 @@ bool InsetERT::getStatus(LCursor & cur, FuncRequest const & cmd,
|
||||
case LFUN_INSERT_BOX:
|
||||
case LFUN_GOTONOTE:
|
||||
case LFUN_PARAGRAPH_SPACING:
|
||||
case LFUN_QUOTE:
|
||||
case LFUN_LABEL_GOTO:
|
||||
case LFUN_REFERENCE_GOTO:
|
||||
case LFUN_SPACE_INSERT:
|
||||
@ -372,6 +377,7 @@ bool InsetERT::getStatus(LCursor & cur, FuncRequest const & cmd,
|
||||
status.enabled(false);
|
||||
return true;
|
||||
|
||||
case LFUN_QUOTE:
|
||||
case LFUN_INSET_MODIFY:
|
||||
case LFUN_PASTE:
|
||||
case LFUN_PASTESELECTION:
|
||||
|
Loading…
Reference in New Issue
Block a user