1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-28 06:07:41 +00:00

input: dont generate control-char combos

This commit is contained in:
kepler155c@gmail.com
2019-03-24 16:29:49 -04:00
parent 8c50447625
commit 398953af54
2 changed files with 19 additions and 10 deletions

View File

@@ -89,8 +89,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
if not keyboard.state[keys.leftAlt] and
not keyboard.state[keys.rightAlt] then
self.fired = true
return { code = event, ch = code }
-- return { code = event, ch = input:toCode(code) }