From b57e863c2893bb28e08a11688f2376c4df9a64ce Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Sat, 5 Nov 2022 22:59:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E7=BD=91=E6=B8=B8=E6=88=8F=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E7=94=A8=E9=94=AE=E7=9B=98ctrl+0123456=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E9=98=9F=E4=BC=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/net_game.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/parts/scenes/net_game.lua b/parts/scenes/net_game.lua index 976965d5..ab382433 100644 --- a/parts/scenes/net_game.lua +++ b/parts/scenes/net_game.lua @@ -127,6 +127,14 @@ function scene.keyDown(key,isRep) else _quit() end + elseif key=='/' then + if inputBox.hide then + _switchChat() + local mes=STRING.trim(inputBox:getText()) + if #mes==0 then + inputBox:setText("/") + end + end elseif key=='return' or key=='kpenter' then local mes=STRING.trim(inputBox:getText()) if not inputBox.hide and #mes>0 then @@ -165,6 +173,8 @@ function scene.keyDown(key,isRep) else _switchChat() end + elseif #key==1 and key:find("^[0-6]$") and kb.isDown('lctrl','rctrl') then + NET.player_joinGroup(tonumber(key)) elseif not inputBox.hide then WIDGET.focus(inputBox) inputBox:keypress(key)