aboutsummaryrefslogtreecommitdiff
path: root/input_field.c
diff options
context:
space:
mode:
authorRiley Beckett <rbeckettvt@gmail.com>2025-10-27 16:30:01 -0400
committerRiley Beckett <rbeckettvt@gmail.com>2025-10-27 16:30:01 -0400
commit2033b55f91876c8fc0d4cd3cdf9c67972ad5490c (patch)
tree70673c7f890dd0e7ffa6fa8b9922d627424d1bdb /input_field.c
parentc99280755915e8b0a997cffc671708a5d8bfa1cf (diff)
add -P password flag
Diffstat (limited to 'input_field.c')
-rw-r--r--input_field.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/input_field.c b/input_field.c
index 9eded28..4672212 100644
--- a/input_field.c
+++ b/input_field.c
@@ -52,7 +52,7 @@ void update_text_buffer(client_state* state) {
init_text_buffer(state, &state->input_buffer_grafix, state->input_buffer, array_size(state->input_buffer));
}
-bool type_key(client_state* state, xkb_keysym_t keysym) {
+key_repeat_t type_key(client_state* state, xkb_keysym_t keysym) {
bool ctrl = xkb_state_mod_name_is_active(state->xkb_state, XKB_MOD_NAME_CTRL, XKB_STATE_MODS_EFFECTIVE);
bool alt = xkb_state_mod_name_is_active(state->xkb_state, XKB_MOD_NAME_ALT, XKB_STATE_MODS_EFFECTIVE);
@@ -109,9 +109,9 @@ bool type_key(client_state* state, xkb_keysym_t keysym) {
state->cursor_index++;
}
update_text_buffer(state);
- return true;
+ return KEY_REPEAT;
}
- return false;
+ return KEY_NO_REPEAT;
}