/** Bind a key-sequence to an action.
Returns 0 on success. Otherwise, position in string where
error occured. */
- int bind(string const & seq, int action);
+ string::size_type bind(string const & seq, int action);
///
void print(string & buf) const;
unsigned int mod, kb_sequence * seq) const;
/// Given an action, find all keybindings.
- string const findbinding(int action) const;
+ string const findbinding(int action,
+ string const & prefix = string()) const;
private:
///
struct kb_key {