修复粘贴任务后光标位置错误
This commit is contained in:
@@ -72,9 +72,11 @@ function scene.keyDown(key)
|
|||||||
local str=sys.getClipboardText()
|
local str=sys.getClipboardText()
|
||||||
local args=splitStr(str:sub((str:find(":")or 0)+1),"!")
|
local args=splitStr(str:sub((str:find(":")or 0)+1),"!")
|
||||||
if #args<4 then goto fail end
|
if #args<4 then goto fail end
|
||||||
if not pasteQuestArgs(args[1])then goto fail end
|
if not(
|
||||||
if not pasteSequence(args[2])then goto fail end
|
pasteQuestArgs(args[1])and
|
||||||
if not pasteMission(args[3])then goto fail end
|
pasteSequence(args[2])and
|
||||||
|
pasteMission(args[3])
|
||||||
|
)then goto fail end
|
||||||
repeat table.remove(FIELD)until #FIELD==0
|
repeat table.remove(FIELD)until #FIELD==0
|
||||||
FIELD[1]=newBoard()
|
FIELD[1]=newBoard()
|
||||||
for i=4,#args do
|
for i=4,#args do
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ end
|
|||||||
local missionEnum=missionEnum
|
local missionEnum=missionEnum
|
||||||
local legalInput={Z=true,S=true,J=true,L=true,T=true,O=true,I=true,A=true,_=true,P=true}
|
local legalInput={Z=true,S=true,J=true,L=true,T=true,O=true,I=true,A=true,_=true,P=true}
|
||||||
function scene.keyDown(key)
|
function scene.keyDown(key)
|
||||||
local MISSION=MISSION
|
|
||||||
if key=="left"then
|
if key=="left"then
|
||||||
local p=cur
|
local p=cur
|
||||||
if p==0 then
|
if p==0 then
|
||||||
|
|||||||
Reference in New Issue
Block a user