mirror of
https://github.com/kepler155c/opus
synced 2025-01-05 21:30:28 +00:00
foreign keyboards
This commit is contained in:
parent
43a6019b9f
commit
d32030bec4
@ -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,
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user