Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix https://github.com/rustdesk/rustdesk/issues/609#issuecomment-3931613118 (#14364)

RustDesk6aee70fa18f4
diff --git a/src/ui/chatbox.html b/src/ui/chatbox.html
index 10d85a567..87d616289 100644
--- a/src/ui/chatbox.html
+++ b/src/ui/chatbox.html
@@ -12,7 +12,11 @@
include "common.tis";
var p = view.parameters;
view.refresh = function() {
+ var draft_input = $(input);
+ var draft = draft_input ? (draft_input.value || "") : "";
$(body).content(<ChatBox msgs={p.msgs} callback={p.callback} />);
+ var next_input = $(input);
+ if (next_input) next_input.value = draft;
view.focus = $(input);
}
function self.closing() {