diff --git a/lib/ui/stdcontext.inc b/lib/ui/stdcontext.inc index 583e49eb16..79e242eb3c 100644 --- a/lib/ui/stdcontext.inc +++ b/lib/ui/stdcontext.inc @@ -622,4 +622,17 @@ Menuset Item "Select Section|S" "section-select" End +# +# InsetERT context menu +# + Menu "context-ert" + OptItem "Open Inset|O" "inset-toggle open" + OptItem "Close Inset|C" "inset-toggle close" + Separator + Item "Wrap by Preview|P" "command-sequence inset-begin;char-backward;char-forward-select;preview-insert" + Separator + Item "Dissolve Inset|D" "inset-dissolve" + OptItem "Settings...|S" "inset-settings" + End + End diff --git a/src/insets/InsetERT.h b/src/insets/InsetERT.h index 2839af02ff..139834c21a 100644 --- a/src/insets/InsetERT.h +++ b/src/insets/InsetERT.h @@ -37,6 +37,9 @@ public: static CollapseStatus string2params(std::string const &); /// static std::string params2string(CollapseStatus); + + docstring contextMenu(BufferView const &, int, int) const + { return from_ascii("context-ert"); } private: /// InsetCode lyxCode() const { return ERT_CODE; }