From 044a15d6ebc882ecb9cea3ce899bb8b4b5e097b9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 22 Sep 2019 10:43:16 +0100 Subject: [PATCH] Set focus to message --- webinterface.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/webinterface.py b/webinterface.py index f64323484..287f650ef 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1385,10 +1385,7 @@ def cursorToEndOfMessageScript() -> str: ' var theVal = replyTextArea.value;' \ ' replyTextArea.value = theVal;' \ '}' \ - 'replyTextArea.onPageShow = function() {' \ - ' var theVal = replyTextArea.value;' \ - ' replyTextArea.value = theVal;' \ - '}' + 'replyTextArea.focus();' return script def contentWarningScript() -> str: