foreign keyboards

This commit is contained in:
kepler155c@gmail.com
2019-04-21 23:46:04 -04:00
parent 60efe15fd9
commit 320714c2d0
6 changed files with 158 additions and 50 deletions

View File

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