summaryrefslogtreecommitdiff
path: root/src/binding.h
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2022-12-18 21:20:19 +0100
committerAlbert Cervin <albert@acervin.com>2022-12-18 21:20:19 +0100
commita817e01bfe2356fdd860010d46db4e4361f343a6 (patch)
treef6e34056d236b1df6e6a62573d4f9adf602b0dc7 /src/binding.h
parent3deb7c91056779d1f1b2be112e727bc9999ac21d (diff)
downloaddged-a817e01bfe2356fdd860010d46db4e4361f343a6.tar.gz
dged-a817e01bfe2356fdd860010d46db4e4361f343a6.tar.xz
dged-a817e01bfe2356fdd860010d46db4e4361f343a6.zip
Fixup utf-8 and meta handling in input
Diffstat (limited to 'src/binding.h')
-rw-r--r--src/binding.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/binding.h b/src/binding.h
index 8a703c3..f00efed 100644
--- a/src/binding.h
+++ b/src/binding.h
@@ -11,14 +11,14 @@ enum binding_type { BindingType_Command, BindingType_Keymap };
#define BINDING(mod_, c_, command_) \
(struct binding) { \
- .key = {.mod = mod_, .c = c_}, .type = BindingType_Command, \
- .command = hash_command_name(command_) \
+ .key = {.mod = mod_, .bytes[0] = c_, .nbytes = 1}, \
+ .type = BindingType_Command, .command = hash_command_name(command_) \
}
#define PREFIX(mod_, c_, keymap_) \
(struct binding) { \
- .key = {.mod = mod_, .c = c_}, .type = BindingType_Keymap, \
- .keymap = keymap_ \
+ .key = {.mod = mod_, .bytes[0] = c_, .nbytes = 1}, \
+ .type = BindingType_Keymap, .keymap = keymap_ \
}
struct binding {