summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-10 18:35:25 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-01-25 17:00:08 +0900
commit7368d8f35312b1ae5123b64f1728030e1b85bc37 (patch)
treee9ed983b864d9fec6947701c112c658725197e75
parent2c9e0c0a298157a40eec55f271f0fa0075e4010e (diff)
downloadmpv-7368d8f35312b1ae5123b64f1728030e1b85bc37.tar.bz2
mpv-7368d8f35312b1ae5123b64f1728030e1b85bc37.tar.xz
lua: don't ignore key press events for script key bindings
Meh.
-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 ff70352011..97b6616f4e 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