- Unify clipboard
This commit is contained in:
@@ -68,11 +68,11 @@ function scene.keyDown(key)
|
||||
end
|
||||
elseif key=='c' and kb.isDown('lctrl','rctrl') or key=='cC' then
|
||||
if #MISSION>0 then
|
||||
sys.setClipboardText("Techmino Target:"..DATA.copyMission(MISSION))
|
||||
CLIPBOARD.set("Techmino Target:"..DATA.copyMission(MISSION))
|
||||
MES.new('check',text.exportSuccess)
|
||||
end
|
||||
elseif key=='v' and kb.isDown('lctrl','rctrl') or key=='cV' then
|
||||
local str=sys.getClipboardText()
|
||||
local str=CLIPBOARD.get()
|
||||
local p=str:find(":")-- ptr*
|
||||
if p then
|
||||
if not str:sub(1,p-1):find("Target") then
|
||||
|
||||
Reference in New Issue
Block a user