Fix unable to change hotkey settings while recording

This commit is contained in:
dec05eba
2025-04-11 21:51:38 +02:00
parent 90a1272a65
commit 38feee9f29
6 changed files with 53 additions and 25 deletions

View File

@@ -707,8 +707,11 @@ static void keyboard_event_parse_stdin_command(keyboard_event *self, const char
}
self->num_global_hotkeys = 0;
fprintf(stderr, "Info: unbinded all hotkeys\n");
} else if(strncmp(command, "exit", 4) == 0) {
self->stdin_failed = true;
fprintf(stderr, "Info: received exit command\n");
} else {
fprintf(stderr, "Warning: got invalid command: \"%s\", expected command to start with either \"bind\" or \"unbind_all\"\n", command);
fprintf(stderr, "Warning: got invalid command: \"%s\", expected command to start with either \"bind\", \"unbind_all\" or \"exit\"\n", command);
}
}