Browse Source

CDB Paste file paths from external/generic clipboards

We can now use ctrl+v on a file path cell in cdb to paste a generic text from external clipboards.
Use this with pr/112.
Jed974 4 years ago
parent
commit
f0503df1cd
1 changed files with 2 additions and 0 deletions
  1. 2 0
      hide/comp/cdb/Editor.hx

+ 2 - 0
hide/comp/cdb/Editor.hx

@@ -270,6 +270,8 @@ class Editor extends Component {
 						if( ~/^[A-Za-z0-9_]+$/.match(text) ) value = text;
 					case TString:
 						value = text;
+					case TFile:
+						value = ide.makeRelative(text);
 					case TInt:
 						text = text.split(",").join("").split(" ").join("");
 						value = Std.parseInt(text);