Commit: 6a905a8a157d37e2c4dae7cab10d85cc2f50d93e
Parent: 4c203e3c776786e5b643f65849b1321c29259ba9
Author: Randy Palamar
Date: Wed, 21 Aug 2024 05:59:09 -0600
add copy command to config.def.h
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -36,6 +36,7 @@ struct {
typedef KEYBIND_FN(KeyBind_Fn);
/* NOTE: Bindable Functions */
+KEYBIND_FN(copy); /* arg: none */
KEYBIND_FN(paste); /* arg: none */
KEYBIND_FN(scroll); /* arg: .i = line count increment */
KEYBIND_FN(zoom); /* arg: .i = font size increment */
@@ -50,6 +51,7 @@ struct hotkey {
KeyBind_Fn *fn;
Arg arg;
} g_hotkeys[] = {
+ {ENCODE_KEY(GLFW_PRESS, MODKEY, GLFW_KEY_C), copy, {0}},
{ENCODE_KEY(GLFW_PRESS, MODKEY, GLFW_KEY_V), paste, {0}},
{ENCODE_KEY(GLFW_PRESS, 0, GLFW_KEY_PAGE_UP), scroll, {.i = +3}},
{ENCODE_KEY(GLFW_REPEAT, 0, GLFW_KEY_PAGE_UP), scroll, {.i = +3}},