整理代码
This commit is contained in:
@@ -92,8 +92,13 @@ function scene.keyDown(key)
|
||||
end
|
||||
elseif key=="v"and kb.isDown("lctrl","rctrl")or key=="cV"then
|
||||
local str=sys.getClipboardText()
|
||||
local p=string.find(str,":")--ptr*
|
||||
if p then str=sub(str,p+1)end
|
||||
local p=str:find":"--ptr*
|
||||
if p then
|
||||
if not str:sub(1,p-1):find"SEQ"then
|
||||
LOG.print(text.pasteWrongPlace)
|
||||
end
|
||||
str=str:sub(p+1)
|
||||
end
|
||||
if DATA.pasteSequence(str)then
|
||||
LOG.print(text.importSuccess,COLOR.G)
|
||||
cur=#BAG
|
||||
|
||||
Reference in New Issue
Block a user