blob: 08046ba48c2bca660c4e718f515da180da5c2f4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use crate::app;
pub(crate) fn app_keybindings(app: &app::App) -> crate::config::LiveKeybindConfig {
crate::config::LiveKeybindConfig {
prefix: app.state.prefix_keys.clone(),
keybinds: app.state.keybinds.clone(),
}
}
pub(crate) fn apply_keybindings(
app: &mut app::App,
keybindings: &crate::config::LiveKeybindConfig,
) {
app.state.prefix_keys = keybindings.prefix.clone();
app.state.keybinds = keybindings.keybinds.clone();
}
|