mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
input: parse_key_binding_for_action: export function
This commit is contained in:
parent
f78a8a77ed
commit
0c72128405
2 changed files with 9 additions and 4 deletions
8
input.c
8
input.c
|
|
@ -84,8 +84,8 @@ input_execute_binding(struct terminal *term, enum binding_action action,
|
|||
}
|
||||
}
|
||||
|
||||
static bool
|
||||
parse_key_binding_for_action(
|
||||
bool
|
||||
input_parse_key_binding_for_action(
|
||||
struct xkb_keymap *keymap, enum binding_action action,
|
||||
const char *combos, key_binding_list_t *bindings)
|
||||
{
|
||||
|
|
@ -196,11 +196,11 @@ keyboard_keymap(void *data, struct wl_keyboard *wl_keyboard,
|
|||
close(fd);
|
||||
|
||||
for (size_t i = 0; i < BIND_ACTION_COUNT; i++) {
|
||||
parse_key_binding_for_action(
|
||||
input_parse_key_binding_for_action(
|
||||
wayl->kbd.xkb_keymap, i,
|
||||
wayl->conf->bindings.key[i], &wayl->kbd.bindings.key);
|
||||
|
||||
parse_key_binding_for_action(
|
||||
input_parse_key_binding_for_action(
|
||||
wayl->kbd.xkb_keymap, i,
|
||||
wayl->conf->bindings.search[i], &wayl->kbd.bindings.search);
|
||||
}
|
||||
|
|
|
|||
5
input.h
5
input.h
|
|
@ -9,5 +9,10 @@ extern const struct wl_keyboard_listener keyboard_listener;
|
|||
extern const struct wl_pointer_listener pointer_listener;
|
||||
|
||||
void input_repeat(struct wayland *wayl, uint32_t key);
|
||||
|
||||
bool input_parse_key_binding_for_action(
|
||||
struct xkb_keymap *keymap, enum binding_action action,
|
||||
const char *combos, key_binding_list_t *bindings);
|
||||
|
||||
void input_execute_binding(
|
||||
struct terminal *term, enum binding_action action, uint32_t serial);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue