Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input: fix keybind command #15236

Merged
merged 7 commits into from
Nov 2, 2024
Merged

Conversation

na-na-hi
Copy link
Contributor

@na-na-hi na-na-hi commented Nov 1, 2024

Fixes various issues with the keybind command.

It's just a copypaste of bind_keys with some params set to
hard coded values, so use bind_keys instead.
DOCS/man/input.rst Outdated Show resolved Hide resolved
player/command.c Outdated Show resolved Hide resolved
player/command.c Outdated Show resolved Hide resolved
@avih
Copy link
Member

avih commented Nov 1, 2024

Nice PR.

Copy link

github-actions bot commented Nov 1, 2024

Download the artifacts for this pull request:

Windows
macOS

This allows the keybind to have a comment field which can be
read from input-bindings, and displayed by e.g. stats.lua.
The command is documented to use the same syntax as input.conf, but
it doesn't work with sequence keys because it uses
mp_input_get_key_from_name for checking key names, when it should
use mp_input_get_keys_from_string instead.

Fix this by using the correct function.
@kasper93 kasper93 merged commit 1a522b4 into mpv-player:master Nov 2, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants