vtgl

terminal emulator implemented in OpenGL
git clone anongit@rnpnr.xyz:vtgl.git
Log | Files | Refs | Feed | LICENSE

Commit: b077594494d7b58f869a7faede560369adb8823a
Parent: 373a83594cc3420de2687c1df6e82572c7c67fbc
Author: Randy Palamar
Date:   Fri, 15 Nov 2024 10:58:30 -0700

config.def.h: use correct key names

Diffstat:
Mconfig.def.h | 28++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -68,24 +68,24 @@ KEYBIND_FN(paste); /* arg: .i = CLIPBOARD_0 or CLIPBOARD_1 (on suppo KEYBIND_FN(scroll); /* arg: .i = line count increment */ KEYBIND_FN(zoom); /* arg: .i = font size increment */ -#define MODKEY (GLFW_MOD_ALT) -#define TERMMOD (GLFW_MOD_CONTROL|GLFW_MOD_SHIFT) -#define ALTMOD (GLFW_MOD_ALT|GLFW_MOD_SHIFT) -//#define XXX (GLFW_MOD_SUPER) +#define MODKEY (MOD_ALT) +#define TERMMOD (MOD_CONTROL|MOD_SHIFT) +#define ALTMOD (MOD_ALT|MOD_SHIFT) +//#define XXX (MOD_SUPER) struct hotkey { u32 key; KeyBind_Fn *fn; Arg arg; } g_hotkeys[] = { - {ENCODE_KEY(GLFW_PRESS, MODKEY, GLFW_KEY_C), copy, {.i = CLIPBOARD_0}}, - {ENCODE_KEY(GLFW_PRESS, MODKEY, GLFW_KEY_V), paste, {.i = CLIPBOARD_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}}, - {ENCODE_KEY(GLFW_PRESS, 0, GLFW_KEY_PAGE_DOWN), scroll, {.i = -3}}, - {ENCODE_KEY(GLFW_REPEAT, 0, GLFW_KEY_PAGE_DOWN), scroll, {.i = -3}}, - {ENCODE_KEY(GLFW_PRESS, TERMMOD, GLFW_KEY_MINUS), zoom, {.i = -1}}, - {ENCODE_KEY(GLFW_REPEAT, TERMMOD, GLFW_KEY_MINUS), zoom, {.i = -1}}, - {ENCODE_KEY(GLFW_PRESS, TERMMOD, GLFW_KEY_EQUAL), zoom, {.i = +1}}, - {ENCODE_KEY(GLFW_REPEAT, TERMMOD, GLFW_KEY_EQUAL), zoom, {.i = +1}}, + {ENCODE_KEY(ACT_PRESS, MODKEY, KEY_C), copy, {.i = CLIPBOARD_0}}, + {ENCODE_KEY(ACT_PRESS, MODKEY, KEY_V), paste, {.i = CLIPBOARD_0}}, + {ENCODE_KEY(ACT_PRESS, 0, KEY_PAGE_UP), scroll, {.i = +3}}, + {ENCODE_KEY(ACT_REPEAT, 0, KEY_PAGE_UP), scroll, {.i = +3}}, + {ENCODE_KEY(ACT_PRESS, 0, KEY_PAGE_DOWN), scroll, {.i = -3}}, + {ENCODE_KEY(ACT_REPEAT, 0, KEY_PAGE_DOWN), scroll, {.i = -3}}, + {ENCODE_KEY(ACT_PRESS, TERMMOD, KEY_MINUS), zoom, {.i = -1}}, + {ENCODE_KEY(ACT_REPEAT, TERMMOD, KEY_MINUS), zoom, {.i = -1}}, + {ENCODE_KEY(ACT_PRESS, TERMMOD, KEY_EQUAL), zoom, {.i = +1}}, + {ENCODE_KEY(ACT_REPEAT, TERMMOD, KEY_EQUAL), zoom, {.i = +1}}, };