fix copy/paste in editor

This commit is contained in:
kepler155c@gmail.com
2019-03-14 09:48:22 -04:00
parent a0a92818d6
commit ed0dfcd473

View File

@@ -1183,10 +1183,10 @@ function input:translate(event, code, p1, p2)
self.pressed[keys.leftCtrl] = nil
self.pressed[keys.rightCtrl] = nil
self.fired = true
if clipboard then
return 'paste'
if self.pressed[keys.leftShift] or self.pressed[keys.rightShift] then
return 'control-shift-paste'
end
return input:toCode('paste', 255)
return 'paste'
elseif event == 'mouse_click' then
local buttons = { 'mouse_click', 'mouse_rightclick' }