瀏覽代碼

CDB: Refacto clipboard + copy / paste

lviguier 5 月之前
父節點
當前提交
d391076a88
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hxd/System.js.hx

+ 1 - 1
hxd/System.js.hx

@@ -149,7 +149,7 @@ class System {
 
 	public static function setClipboardText(text:String) : Bool {
 		#if (hide && editor)
-		nw.Clipboard.get().set(text, Text);
+		nw.Clipboard.get().set({ data: text, type: nw.Clipboard.ClipboardType.Text });
 		return true;
 		#end
 		return false;