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.
This commit is contained in:
Mitchell Hashimoto
2025-01-03 13:40:47 -08:00
parent 8f5f432ab6
commit 4d103ca16d
3 changed files with 75 additions and 12 deletions

View File

@@ -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,