obsproject/obs-studio

Prevent loading Mouse1/Mouse2 as hotkeys

Open

#13.403 geöffnet am 5. Mai 2026

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C (9.239 Forks)batch import
Good first issue

Repository-Metriken

Stars
 (72.387 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 35T 12h) (52 gemergte PRs in 30 T)

Beschreibung

The UI currently prevents settings Mouse1 or Mouse2 or hotkeys, however if someone modifies their scene collection json to add these hotkeys, OBS will still load them and cause all sorts of weird behaviour.

The frontend prevents setting these as hotkeys, and libobs should similarly avoid loading them.

https://github.com/obsproject/obs-studio/blob/25fbaf7bb8d29cfd80d711e8f9f98c6638deab21/libobs/obs-hotkey.c#L469-L486

I think we would likely do so here, but it would good for someone to thoroughly investigate this and ensure it's the correct place to do so.

Contributor Guide