Преглед изворни кода

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;