foreign keyboards

This commit is contained in:
kepler155c@gmail.com 2019-04-21 23:41:17 -04:00
parent 43a6019b9f
commit d32030bec4
2 changed files with 4 additions and 3 deletions

View File

@ -344,7 +344,7 @@ local mappings = {
--[ 'control-d' ] = Entry.cutNextWord, --[ 'control-d' ] = Entry.cutNextWord,
[ 'control-x' ] = Entry.cut, [ 'control-x' ] = Entry.cut,
[ 'paste' ] = Entry.paste, [ 'paste' ] = Entry.paste,
[ 'control-y' ] = Entry.paste, -- [ 'control-y' ] = Entry.paste, -- well this won't work...
[ 'mouse_doubleclick' ] = Entry.markWord, [ 'mouse_doubleclick' ] = Entry.markWord,
[ 'shift-left' ] = Entry.markLeft, [ 'shift-left' ] = Entry.markLeft,

View File

@ -88,8 +88,9 @@ function input:translate(event, code, p1, p2)
else else
self.state[code] = true self.state[code] = true
if self:modifierPressed() and not modifiers[code] then --or code == 57 then if self:modifierPressed() and not modifiers[code] then --or code == 57 then
self.fired = true -- why was i firing here ??
return { code = input:toCode(keys.getName(code), code) } --self.fired = true
--return { code = input:toCode(keys.getName(code), code) }
else else
self.fired = false self.fired = false
end end