mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 09:17:04 +09:00
Fix unable to change hotkey settings while recording
This commit is contained in:
@@ -18,4 +18,10 @@ To unbind all keys send `unbind_all<newline>` to the programs stdin, for example
|
||||
```
|
||||
unbind_all
|
||||
|
||||
```
|
||||
## Exit
|
||||
To close gsr-global-hotkeys send `exit<newline>` to the programs stdin, for example:
|
||||
```
|
||||
exit
|
||||
|
||||
```
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user