summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-10 18:35:25 +0100
committerwm4 <wm4@nowhere>2014-12-10 18:36:05 +0100
commiteb36bd6945bad1ddc80663f7b8d3fe95db3ca284 (patch)
treecef8ffd8fc74df827a4f4e37659cbb959094ec32 /player
parentefd3f6f0d24a17c6c44b2bd5bdd0f42f2631ca8d (diff)
downloadmpv-eb36bd6945bad1ddc80663f7b8d3fe95db3ca284.tar.bz2
mpv-eb36bd6945bad1ddc80663f7b8d3fe95db3ca284.tar.xz
lua: don't ignore key press events for script key bindings
Meh.
Diffstat (limited to 'player')
-rw-r--r--player/lua/defaults.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/lua/defaults.lua b/player/lua/defaults.lua
index be39da8f36..bb4eb648ce 100644
--- a/player/lua/defaults.lua
+++ b/player/lua/defaults.lua
@@ -177,9 +177,9 @@ local function add_binding(attrs, key, name, fn, rp)
if event == "r" and not repeatable then
return
end
- if is_mouse and event == "u" then
+ if is_mouse and (event == "u" or event == "p") then
fn()
- elseif (not is_mouse) and (event == "d" or event == "r") then
+ elseif (not is_mouse) and (event == "d" or event == "r" or event == "p") then
fn()
end
end