mirror of
https://github.com/kepler155c/opus
synced 2025-01-17 02:42:52 +00:00
input: dont generate control-char combos
This commit is contained in:
parent
7bab4e5bf5
commit
8c50447625
@ -89,9 +89,11 @@ 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 { code = event, ch = input:toCode(code) }
|
||||
return { code = event, ch = code }
|
||||
-- return { code = event, ch = input:toCode(code) }
|
||||
end
|
||||
|
||||
elseif event == 'key_up' then
|
||||
|
Loading…
Reference in New Issue
Block a user