aboutsummaryrefslogtreecommitdiff
path: root/internet.lua
diff options
context:
space:
mode:
Diffstat (limited to 'internet.lua')
-rw-r--r--internet.lua23
1 files changed, 12 insertions, 11 deletions
diff --git a/internet.lua b/internet.lua
index 8d523cc..12582f8 100644
--- a/internet.lua
+++ b/internet.lua
@@ -55,10 +55,18 @@ function updateInternet()
internet.blinkTimer = 0
end
end
- if key == "return" and layer[1] == 2 then
- internet.urlc = internet.url
- win[2].update = true
- internet.load = 0
+ if key == "return" or key == "kpenter" then
+ if layer[1] == 2 then
+ internet.urlc = internet.url
+ win[2].update = true
+ internet.load = 0
+ elseif layer[1] == 1 and chat.msg ~= "" then
+ sendMessage(2, chat.msg)
+ if chat.status == 1 then
+ chatReply(string.lower(chat.msg))
+ end
+ chat.msg = ""
+ end
end
if key == "backspace" and layer[1] == 1 and v1.yes == false then
chat.msg = string.sub(chat.msg, 1, string.len(chat.msg)-1)
@@ -68,13 +76,6 @@ function updateInternet()
chat.blinkTimer = 0.5
end
end
- if key == "return" and layer[1] == 1 and chat.msg ~= "" then
- sendMessage(2, chat.msg)
- if chat.status == 1 then
- chatReply(string.lower(chat.msg))
- end
- chat.msg = ""
- end
end
function love.textinput(t)
if layer[1] == 2 and v1.yes == false then