1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-06 07:01:45 +00:00

js: complex key binding: use key_name like the docs say

This commit is contained in:
Avi Halachmi (:avih) 2019-11-20 16:55:21 +02:00
parent 14971424b9
commit 67fef2b152

View File

@ -221,7 +221,7 @@ function add_binding(forced, key, name, fn, opts) {
fn({
event: KEY_STATES[state[0]] || "unknown",
is_mouse: state[1] == "m",
key: key_name || undefined
key_name: key_name || undefined
});
}
} else {