/// Given an action, print the keybindings.
docstring const printbindings(FuncRequest const & func) const;
+ typedef std::pair<FuncRequest, KeySequence> Binding;
+ typedef std::vector<Binding> BindingList;
+ /**
+ * Return all lfun and their associated bindings.
+ * @param unbound list unbound (func without any keybinding) as well
+ */
+ BindingList const listBindings(bool unbound) const;
+
/**
* Given an action, find the first 1-key binding (if it exists).
* The KeySymbol pointer is 0 is no key is found.
typedef std::pair<KeyModifier, KeyModifier> ModifierPair;
+
private:
///
struct Key {
*/
Bindings findbindings(FuncRequest const & func,
KeySequence const & prefix) const;
+
+ void listBindings(BindingList & list,
+ KeySequence const & prefix) const;
/// is the table empty ?
bool empty() const { return table.empty(); }