2
0
Эх сурвалжийг харах

added clipboard support for hide

Nicolas Cannasse 4 жил өмнө
parent
commit
3d6b1cff7f
1 өөрчлөгдсөн 8 нэмэгдсэн , 1 устгасан
  1. 8 1
      hxd/System.js.hx

+ 8 - 1
hxd/System.js.hx

@@ -141,10 +141,17 @@ class System {
 	}
 
 	public static function getClipboardText() : String {
+		#if (hide && editor)
+		return nw.Clipboard.get().get(Text);
+		#end
 		return null;
 	}
-	
+
 	public static function setClipboardText(text:String) : Bool {
+		#if (hide && editor)
+		nw.Clipboard.get().set(text, Text);
+		return true;
+		#end
 		return false;
 	}