之前更改文本变量名忘了改引用名导致提示复制/粘贴成功会报错
This commit is contained in:
@@ -74,14 +74,14 @@ function keyDown.custom_sequence(key)
|
||||
elseif key=="c"and kb.isDown("lctrl","rctrl")or key=="cC"then
|
||||
if #BAG>0 then
|
||||
sys.setClipboardText("Techmino SEQ:"..copySequence())
|
||||
LOG.print(text.copySuccess,COLOR.green)
|
||||
LOG.print(text.exportSuccess,COLOR.green)
|
||||
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
|
||||
if pasteSequence(str)then
|
||||
LOG.print(text.pasteSuccess,COLOR.green)
|
||||
LOG.print(text.importSuccess,COLOR.green)
|
||||
else
|
||||
LOG.print(text.dataCorrupted,COLOR.red)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user