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
1 changed files with 1 additions and 1 deletions

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 {