From 7924f831e531b940532327591a2245f2701249ab Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 22 Sep 2019 10:48:17 +0100 Subject: [PATCH] Focus on message --- webinterface.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index 287f650ef..d43f532bd 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1385,7 +1385,9 @@ def cursorToEndOfMessageScript() -> str: ' var theVal = replyTextArea.value;' \ ' replyTextArea.value = theVal;' \ '}' \ - 'replyTextArea.focus();' + 'window.onload = function() {' \ + " document.getElementById('message').focus();" \ + '};' return script def contentWarningScript() -> str: