commit | 7af518ac5a672bdc8e5c27656099b93dc1638efd | [log] [tgz] |
---|---|---|
author | gwenn <gtreguier@gmail.com> | Sat Aug 18 16:57:06 2018 +0200 |
committer | gwenn <gtreguier@gmail.com> | Sat Aug 18 16:57:06 2018 +0200 |
tree | 5c28763cd20b5f26c54733a9a023b1d3b491e166 | |
parent | d1fc4ed7616674b07747b0712b15107dd49bb13d [diff] |
Give access to the Helper.
diff --git a/src/lib.rs b/src/lib.rs index 519329c..2a741da 100644 --- a/src/lib.rs +++ b/src/lib.rs
@@ -739,6 +739,11 @@ self.helper = helper; } + /// Return an immutable reference to the helper. + pub fn helper(&self) -> Option<&H> { + self.helper.as_ref() + } + /// Bind a sequence to a command. pub fn bind_sequence(&mut self, key_seq: KeyPress, cmd: Cmd) -> Option<Cmd> { let mut bindings = self.custom_bindings.write().unwrap();