LFUN_GRAPHICS_GROUPS_UNIFY,
LFUN_SET_GRAPHICS_GROUP,
LFUN_COMPLETION_CANCEL,
+ LFUN_COMPLETION_ACCEPT,
LFUN_LASTACTION // end of the table
};
* \endvar
*/
{ LFUN_COMPLETION_CANCEL, "completion-cancel", SingleParUpdate, Edit },
+/*!
+ * \var lyx::FuncCode lyx::LFUN_COMPLETION_ACCEPT
+ * \li Action: Accept suggested completion.
+ * \li Syntax: completion-accept
+ * \li Origin: sanda, Sep 08 2008
+ * \endvar
+ */
+ { LFUN_COMPLETION_ACCEPT, "completion-accept", SingleParUpdate, Edit },
+
/*!
* \var lyx::FuncCode lyx::LFUN_BRANCH_ACTIVATE
enable = false;
break;
+ case LFUN_COMPLETION_ACCEPT:
case LFUN_COMPLETION_CANCEL:
if (!d.current_work_area_
|| (!d.current_work_area_->completer().popupVisible()
}
break;
+ case LFUN_COMPLETION_ACCEPT:
+ if (d.current_work_area_)
+ d.current_work_area_->completer().activate();
+ break;
+
+
default:
dispatched = false;
break;