obsproject/obs-studio

Non-numlocked numpad keys cannot be assigned as hotkeys under Wayland

开放

#9,244 创建于 2023年7月12日

 (3 条评论) (0 个反应) (0 位负责人)C (9,239 个派生)batch import
Good first issueplatform/linux

仓库指标

星标
 (72,387 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Operating System Info

Other

Other OS

Arch Linux

OBS Studio Version

Git

OBS Studio Version (Other)

ga4834efde

OBS Studio Log URL

Nothing relevant in logs

OBS Studio Crash Log URL

No response

Expected Behavior

The numpad End key is assigned to the chosen action.

Current Behavior

Nothing happens. The input field remains blank.

Steps to Reproduce

  1. Run a Wayland compositor (I'm using Hyprland)
  2. Turn off num-lock
  3. Run wev
  4. Press the "1" key on the numpad
  5. Notice that it records that the button KP_End was pressed (distinct from the End key)
  6. Close wev
  7. Open OBS
  8. Open Settings -> Hotkeys and select the input field for an unassigned action
  9. Press the "1" key on the numpad

Anything else we should know?

Numeric inputs from the numpad work just fine (like "1" with num lock turned on). The equivalent non-numpad keys work fine (like the regular "End" key).

It could be that Hyprland is doing something weird in how it handles num lock (see https://github.com/hyprwm/Hyprland/issues/2682 for example), but given that wev produces the expected output I don't think this is related to Hyprland.

贡献者指南