]> git.lyx.org Git - lyx.git/blobdiff - src/LyXAction.cpp
This patch prevents the shortcut dialog from silently over-writing existing bindings...
[lyx.git] / src / LyXAction.cpp
index 21f6490a29c9a3c5dc34d137cd55909744e9fc29..a33ffdb6b9b174574fa2f815b7be6d84efd4cabd 100644 (file)
@@ -1092,11 +1092,19 @@ void LyXAction::init()
 
 /*!
  * \var lyx::FuncCode lyx::LFUN_FONT_BOLD
- * \li Action: Toggles the bold font (selection-wise).
+ * \li Action: Toggles the bold font (selection-wise) using mathbf in math.
  * \li Syntax: font-bold
  * \endvar
  */
                { LFUN_FONT_BOLD, "font-bold", Noop, Layout },
+
+/*!
+ * \var lyx::FuncCode lyx::LFUN_FONT_BOLDSYMBOL
+ * \li Action: Toggles the bold font (selection-wise) using boldsymbol in math.
+ * \li Syntax: font-boldsymbol
+ * \endvar
+ */
+               { LFUN_FONT_BOLDSYMBOL, "font-boldsymbol", Noop, Layout },
 /*!
  * \var lyx::FuncCode lyx::LFUN_FONT_TYPEWRITER
  * \li Action: Toggles the typewriter family font (selection-wise).
@@ -3006,7 +3014,7 @@ void LyXAction::init()
 /*!
  * \var lyx::FuncCode lyx::LFUN_COMPLETION_CANCEL
  * \li Action: Try to cancel completion, either the popup or the inline completion
- * \li Syntax: completion-escape
+ * \li Syntax: completion-cancel
  * \li Origin: sts, Sep 07 2008
  * \endvar
  */
@@ -3118,5 +3126,11 @@ LyXAction::const_func_iterator LyXAction::func_end() const
        return lyx_func_map.end();
 }
 
+LyXErr & operator<<(LyXErr & l, FuncCode code)
+{
+       if (l.enabled()) 
+               l.stream() << lyxaction.getActionName(code); 
+       return l;
+}
 
 } // namespace lyx