obsproject / obsproject/obs-studio

Space bar activates previously clicked UI element (widget) due to FocusPolicy

Open
#5,445 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

platform/linux platform/windows
Dominant language
C
Stars
76.4k
Forks
10.2k
Avg merge
4d 23h
Merged PRs (30d)
12

Description

Operating System Info

Ubuntu 20.04

Other OS

No response

OBS Studio Version

27.1.3

OBS Studio Version (Other)

No response

OBS Studio Log URL

n/a

OBS Studio Crash Log URL

No response

Expected Behavior

I expect that hitting space bar will trigger the hot key for space bar.

Current Behavior

Space bar is being intercepted by some sort of accessibility feature, and is treated as a click on the last button clicked. So that means if you start recording and hit the space bar, recording stops. For other buttons, like the crossfade button, it pops up a contextual window. So maybe it's acting like a right click. Not sure.

This occurs on both gdm3 and lightdm.

This bug also appears to exist on Windows:
https://obsproject.com/forum/threads/can-i-stop-spacebar-from-acting-as-a-hotkey.66796/page-2#post-546420

Steps to Reproduce
  1. Set the space bar to be the hotkey for something useful, like a cross-dissolve.
  2. Click the "Start recording" button.
  3. Press the space bar. Observe that the recording stopped.
Anything else we should know?

This definitely does not reproduce on macOS in version 25.x, and I'm 99% sure it doesn't reproduce on macOS in 26.x. So assuming this affects all platforms, this is probably a regression in version 27.x.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the documented reproduction using the Start recording and cross-dissolve controls, and investigate the widget FocusPolicy behavior described in the report. Done means the space-bar hotkey fires after another UI element is clicked instead of activating that element; no source file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.