Skip to content

multi-key sequence containing key "-" causes "Unknown key" error #16784

@verygoodlee

Description

@verygoodlee

mpv Information

mpv v0.40.0-302-gd837c4365 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
 built on Sep 11 2025 18:08:44
libplacebo version: v7.354.0 (v7.351.0-67-g515da95-dirty)
FFmpeg version: N-121029-gc1dc2e2b7
FFmpeg library versions:
   libavcodec      62.15.100
   libavdevice     62.2.100
   libavfilter     11.8.100
   libavformat     62.5.100
   libavutil       60.13.100
   libswresample   6.2.100
   libswscale      9.3.100

Other Information

- Windows version: Windows10 22H2
- GPU model, driver and version:
- Source of mpv: https://github.com/zhongfly/mpv-winbuild
- Latest known working version:
- Issue started after the following happened:

Reproduction Steps

  • ~~/input.conf
a--     show-text "a -"
--a     show-text "- a"
---     show-text "- -"

Expected Behavior

all these keys can be bound

Actual Behavior

both "--a" and "---" can be bound but "a--" can't

Image

Log File

log.txt

Sample Files

N/A

I carefully read all instruction and confirm that I did the following:

  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions