diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index a3ef0868..3e020100 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -4159,6 +4159,7 @@ html.e #detree { } #tempname { + width: 100%; color: var(--fg); background: var(--txt-bg); border: none; diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 680629eb..19b9e608 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -646,7 +646,7 @@ if (1) "rc_opn": "Open", "rc_ply": "Play", "rc_pla": "Play as audio", - "rc_txt": "Open in text editor", + "rc_txt": "Open in file viewer", "rc_md": "Open in markdown editor", "rc_dl": "Download", "rc_zip": "Download as archive", @@ -9472,7 +9472,7 @@ let rcm = (function () { function mktemp(is_dir) { let row = mknod('tr', 'temp', '
" + esc(req.responseText) + '');
toast.ok(3, "OK :)");
reload_browser();
};
@@ -9503,8 +9505,10 @@ let rcm = (function () {
input.onkeydown = function(e) {
if (e.key == "Enter")
sendit(input.value);
- if (e.key == "Enter" || e.key == "Escape")
+ if (e.key == "Enter" || e.key == "Escape") {
row.remove();
+ ev(e)
+ }
};
input.focus();
}