mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 12:17:17 -04:00
taught edit to insert two spaces when tab is pressed. finally.
This commit is contained in:
parent
1ec60b9202
commit
47396a24c8
@ -299,8 +299,12 @@ local function onKeyDown(char, code)
|
|||||||
end
|
end
|
||||||
elseif readonly and code == keyboard.keys.q then
|
elseif readonly and code == keyboard.keys.q then
|
||||||
running = false
|
running = false
|
||||||
elseif not keyboard.isControl(char) and not readonly then
|
elseif not readonly then
|
||||||
insert(unicode.char(char))
|
if not keyboard.isControl(char) then
|
||||||
|
insert(unicode.char(char))
|
||||||
|
elseif unicode.char(char) == "\t" then
|
||||||
|
insert(" ")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user