edit: dont generate control-char combos

This commit is contained in:
kepler155c@gmail.com
2019-03-24 14:21:26 -04:00
parent a4162e546b
commit f8eb2965ae

View File

@@ -1163,9 +1163,10 @@ function input:translate(event, code, p1, p2)
end
elseif event == 'char' then
if not self:modifierPressed() then
if not self.pressed[keys.leftAlt] and
not self.pressed[keys.rightAlt] then
self.fired = true
return input:toCode(code)
return code -- input:toCode(code)
end
elseif event == 'key_up' then