浏览代码

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 年之前
父节点
当前提交
f0503df1cd
共有 1 个文件被更改,包括 2 次插入0 次删除
  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);