Fossil SCM
/chat: give the input file focus when chat starts up.
Commit
c3362100e297585a927ff65e5dc448a4258980bdd4e6edf6324e32e55c770770
Parent
2d385d94f5559a8…
1 file changed
+1
+1
| --- src/chat.js | ||
| +++ src/chat.js | ||
| @@ -1392,7 +1392,8 @@ | ||
| 1392 | 1392 | Chat._gotServerError = poll.running = false; |
| 1393 | 1393 | if( window.fossil.config.chat.fromcli ){ |
| 1394 | 1394 | Chat.chatOnlyMode(true); |
| 1395 | 1395 | } |
| 1396 | 1396 | Chat.intervalTimer = setInterval(poll, 1000); |
| 1397 | + setTimeout( ()=>Chat.inputFocus(), 0 ); | |
| 1397 | 1398 | F.page.chat = Chat/* enables testing the APIs via the dev tools */; |
| 1398 | 1399 | })(); |
| 1399 | 1400 |
| --- 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 |