#endif
#include <list>
+#include <boost/smart_ptr.hpp>
#include "LString.h"
/// Defines key maps and actions for key sequences
class kb_keymap {
public:
- ///
- ~kb_keymap();
-
/** Bind a key-sequence to an action.
Returns 0 on success. Otherwise, position in string where
error occured. */
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 {
unsigned int mod;
/// Keymap for prefix keys
- kb_keymap * table;
+ boost::shared_ptr<kb_keymap> table;
/// Action for !prefix keys
int action;