summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-01-03 13:40:47 -0800
committerMitchell Hashimoto <m@mitchellh.com>2025-01-04 12:45:15 -0800
commit4d103ca16d657ef95748fe4a141e9934217a0559 (patch)
tree078afc1583d3f402970832483b846e71467ece05 /include
parent8f5f432ab61fa73b77cb61239c0cff34250f77bb (diff)
core: add keyEventIsBinding
This API can be used to determine if the next key event, if given as-is, would result in a key binding being triggered.
Diffstat (limited to 'include')
-rw-r--r--include/ghostty.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ghostty.h b/include/ghostty.h
index cbb77f00c..b88fd9888 100644
--- a/include/ghostty.h
+++ b/include/ghostty.h
@@ -714,6 +714,7 @@ void ghostty_surface_set_color_scheme(ghostty_surface_t,
ghostty_input_mods_e ghostty_surface_key_translation_mods(ghostty_surface_t,
ghostty_input_mods_e);
void ghostty_surface_key(ghostty_surface_t, ghostty_input_key_s);
+bool ghostty_surface_key_is_binding(ghostty_surface_t, ghostty_input_key_s);
void ghostty_surface_text(ghostty_surface_t, const char*, uintptr_t);
bool ghostty_surface_mouse_captured(ghostty_surface_t);
bool ghostty_surface_mouse_button(ghostty_surface_t,