Ctrl+v key repeat fix

This commit is contained in:
Kenny Shields 2013-09-21 06:00:39 -04:00
parent 1a6c27c8ba
commit 1e987c50a1

View File

@ -133,7 +133,7 @@ function newobject:update(dt)
local lctrl = love.keyboard.isDown("lctrl")
local rctrl = love.keyboard.isDown("rctrl")
if time > delay then
if lctrl or rctrl and keydown == "v" then
if (lctrl or rctrl) and keydown == "v" then
self:Paste()
else
self:RunKey(keydown, unicode)