From 8c5044762522ccdce91c942a8294655573c5f499 Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Sun, 24 Mar 2019 16:05:38 -0400 Subject: [PATCH] input: dont generate control-char combos --- sys/apis/input.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/apis/input.lua b/sys/apis/input.lua index d03036d..65db6e9 100644 --- a/sys/apis/input.lua +++ b/sys/apis/input.lua @@ -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