libobs: Translate F13-F24 hotkeys on Windows

Fixes #2377
master
Matt Gajownik 2020-02-06 10:29:15 +11:00 committed by Matt Gajownik
parent aade26649b
commit 76bdbdfbb0
1 changed files with 3 additions and 0 deletions

View File

@ -1040,6 +1040,9 @@ void obs_key_to_str(obs_key_t key, struct dstr *str)
if (key == OBS_KEY_NONE) {
return;
} else if (key >= OBS_KEY_F13 && key <= OBS_KEY_F24) {
dstr_printf(str, "F%d", (int)(key - OBS_KEY_F13 + 13));
return;
} else if (key >= OBS_KEY_MOUSE1 && key <= OBS_KEY_MOUSE29) {
if (obs->hotkeys.translations[key]) {
dstr_copy(str, obs->hotkeys.translations[key]);