]> git.lyx.org Git - lyx.git/blobdiff - src/kbmap.h
Reduce Michael's buglist.
[lyx.git] / src / kbmap.h
index 3bc02f6a52c706367dac76c10a61285873ce5fb2..a21a66255802639cbb88123a4f369f9a40779a0e 100644 (file)
@@ -26,7 +26,7 @@ public:
        /** 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;
@@ -36,7 +36,8 @@ public:
                   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 {