edit: dont generate control-char combos
This commit is contained in:
@@ -1163,9 +1163,10 @@ function input:translate(event, code, p1, p2)
|
|||||||
end
|
end
|
||||||
|
|
||||||
elseif event == 'char' then
|
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
|
self.fired = true
|
||||||
return input:toCode(code)
|
return code -- input:toCode(code)
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif event == 'key_up' then
|
elseif event == 'key_up' then
|
||||||
|
|||||||
Reference in New Issue
Block a user