Arrow keys register twice in browser source interact window #361

Open
opened 2022-04-30 23:08:05 -05:00 by UmpquaRiver · 6 comments
UmpquaRiver commented 2022-04-30 23:08:05 -05:00 (Migrated from github.com)

Operating System Info

macOS 12.0

Other OS

No response

OBS Studio Version

27.2.4

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/N-lR1rzq9O25veQ9

OBS Studio Crash Log URL

No response

Expected Behavior

The arrow keys in a browser interact window should only register once when pressed, unless held.

Current Behavior

The arrow keys register twice when pressed once. For instance, when the left arrow key is pressed once in a text field, the insertion point moves two spaces to the left.

Steps to Reproduce

  1. Add Browser Source
  2. Link source to any site with a text field (Google, DuckDuckGo, etc)
  3. "Interact" with source
  4. Type in text field
  5. Move insertion point with arrow keys to demonstrate problem
    ...

Anything else we should know?

I've noticed that OBS only behaves this way on MacOS (both x86 and Apple Silicon through Rosetta). Linux Mint did not have the same issue and testing over the phone with a Windows user did not produce the same problem.

For me, this causes problems for HTML slideshow presentations. The slide moves two forward or back instead of one!

### Operating System Info macOS 12.0 ### Other OS _No response_ ### OBS Studio Version 27.2.4 ### OBS Studio Version (Other) _No response_ ### OBS Studio Log URL https://obsproject.com/logs/N-lR1rzq9O25veQ9 ### OBS Studio Crash Log URL _No response_ ### Expected Behavior The arrow keys in a browser interact window should only register once when pressed, unless held. ### Current Behavior The arrow keys register twice when pressed once. For instance, when the left arrow key is pressed once in a text field, the insertion point moves two spaces to the left. ### Steps to Reproduce 1. Add Browser Source 2. Link source to any site with a text field (Google, DuckDuckGo, etc) 3. "Interact" with source 4. Type in text field 5. Move insertion point with arrow keys to demonstrate problem ... ### Anything else we should know? I've noticed that OBS only behaves this way on MacOS (both x86 and Apple Silicon through Rosetta). Linux Mint did not have the same issue and testing over the phone with a Windows user did not produce the same problem. For me, this causes problems for HTML slideshow presentations. The slide moves two forward or back instead of one!
WizardCM commented 2022-04-30 23:09:28 -05:00 (Migrated from github.com)

Hmm, my first guess is that it's treating both press and release as press+release, resulting in the event firing twice.

Hmm, my first guess is that it's treating both press and release as press+release, resulting in the event firing twice.
UmpquaRiver commented 2022-04-30 23:19:24 -05:00 (Migrated from github.com)

I've opened up OBS and that seems to be correct. The second registered "press" appears to correlate with how long I hold the key before releasing.

I've opened up OBS and that seems to be correct. The second registered "press" appears to correlate with how long I hold the key before releasing.
sebastian-s-beckmann commented 2022-05-01 02:57:53 -05:00 (Migrated from github.com)

Can confirm with this tester. Seems to be specific to the arrow keys.
Though for me it's keydown twice, while other event's (like press and up) aren't sent at all.

Can confirm with [this tester](https://unixpapa.com/js/testkey.html). Seems to be specific to the arrow keys. Though for me it's keydown twice, while other event's (like press and up) aren't sent at all.
erijohnt commented 2023-12-15 02:51:56 -06:00 (Migrated from github.com)

Bug is still present in OBS version 30.0.2 with macOS 13.5.2. If this seems like a "good first issue"-level bug, I could take a stab at it if someone has any hypotheses or ideas about where to look.

Bug is still present in OBS version 30.0.2 with macOS 13.5.2. If this seems like a "good first issue"-level bug, I could take a stab at it if someone has any hypotheses or ideas about where to look.
dhelleberg commented 2025-06-02 03:24:15 -05:00 (Migrated from github.com)

bug seems to be still there OBS 31.03 macOS 15.5

bug seems to be still there OBS 31.03 macOS 15.5
zahinz commented 2026-05-10 23:11:14 -05:00 (Migrated from github.com)

The bug still here

The bug still here
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-obsproject/obs-browser#361
No description provided.