Fossil SCM

/chat: give the input file focus when chat starts up.

stephan 2021-09-23 03:46 trunk
Commit c3362100e297585a927ff65e5dc448a4258980bdd4e6edf6324e32e55c770770
1 file changed +1
--- src/chat.js
+++ src/chat.js
@@ -1392,7 +1392,8 @@
13921392
Chat._gotServerError = poll.running = false;
13931393
if( window.fossil.config.chat.fromcli ){
13941394
Chat.chatOnlyMode(true);
13951395
}
13961396
Chat.intervalTimer = setInterval(poll, 1000);
1397
+ setTimeout( ()=>Chat.inputFocus(), 0 );
13971398
F.page.chat = Chat/* enables testing the APIs via the dev tools */;
13981399
})();
13991400
--- src/chat.js
+++ src/chat.js
@@ -1392,7 +1392,8 @@
1392 Chat._gotServerError = poll.running = false;
1393 if( window.fossil.config.chat.fromcli ){
1394 Chat.chatOnlyMode(true);
1395 }
1396 Chat.intervalTimer = setInterval(poll, 1000);
 
1397 F.page.chat = Chat/* enables testing the APIs via the dev tools */;
1398 })();
1399
--- src/chat.js
+++ src/chat.js
@@ -1392,7 +1392,8 @@
1392 Chat._gotServerError = poll.running = false;
1393 if( window.fossil.config.chat.fromcli ){
1394 Chat.chatOnlyMode(true);
1395 }
1396 Chat.intervalTimer = setInterval(poll, 1000);
1397 setTimeout( ()=>Chat.inputFocus(), 0 );
1398 F.page.chat = Chat/* enables testing the APIs via the dev tools */;
1399 })();
1400

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button