mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 03:05:30 -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
|
||||
elseif readonly and code == keyboard.keys.q then
|
||||
running = false
|
||||
elseif not keyboard.isControl(char) and not readonly then
|
||||
insert(unicode.char(char))
|
||||
elseif not readonly then
|
||||
if not keyboard.isControl(char) then
|
||||
insert(unicode.char(char))
|
||||
elseif unicode.char(char) == "\t" then
|
||||
insert(" ")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user