libobs: Fix hotkey with right-side modifiers

However the hotkeys can be configured with right-side modifiers in UI,
the right modifiers did not work when hitting the hot keys.
This is because `query_hotkeys` in `obs-hotkey.c` was querying states of
only left modifiers.
This commit is contained in:
Norihiro Kamae 2022-05-19 00:22:12 +09:00 committed by Jim
parent 108d32c0c6
commit 3099b59c2c

View File

@ -694,6 +694,15 @@ static obs_key_t key_from_base_keysym(obs_hotkeys_platform_t *context,
}
}
switch (code) {
case XK_Shift_R:
return OBS_KEY_SHIFT;
case XK_Control_R:
return OBS_KEY_CONTROL;
case XK_Alt_R:
return OBS_KEY_ALT;
}
return OBS_KEY_NONE;
}