+2002-01-03 Martin Vermeer <martin.vermeer@hut.fi>
+
+ * FormMathsPanel.C:
+ * FormMathsPanel.h
+ * MathsSymbols.C:
+ * form_maths_panel.C:
+ * form_maths_panel.h:
+ * form_maths_panel.fd:
+ implemented sub- and super- buttons in math panel.
+
+ * lyx_main.C:
+ Revised hardwired bindings to allow original _ and ^ (or ^ space)
+ to be used as in TeX (req'd byAndré).
+
+ * lyxfunc.C:
+ Allow ^and _ again to be used both as super/subscript (mathed)
+ and as themselves (in text).
+
+
2002-01-03 Allan Rae <rae@lyx.org>
* LyXView.C (updateWindowTitle): Setup a short icon title of either
case LFUN_MATH_LIMITS:
case LFUN_MATH_NONUMBER:
case LFUN_MATH_NUMBER:
- case LFUN_SUBSCRIPT:
- case LFUN_SUPERSCRIPT:
disable = !mathcursor;
break;
case LFUN_MATH_NUMBER:
case LFUN_MATH_NONUMBER:
case LFUN_MATH_LIMITS:
- case LFUN_SUBSCRIPT:
- case LFUN_SUPERSCRIPT:
{
setErrorMessage(N_("This is only allowed in math mode!"));
}
break;
+ // passthrough hat and underscore outside mathed:
+ case LFUN_SUBSCRIPT:
+ dispatch(LFUN_SELFINSERT, "_");
+ break;
+ case LFUN_SUPERSCRIPT:
+ dispatch(LFUN_SELFINSERT, "^");
+ break;
+
case LFUN_MATH_PANEL:
owner->getDialogs()->showMathPanel();
break;