Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit757a5f1

Browse files
committed
Don't grab terminal focus after prediction question fades
1 parent8b10974 commit757a5f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎frontend/src/App.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class AppComponent extends React.Component {
6666
ranCode(data);
6767
if(!data.prediction.choices){
6868
showCodeResult(data);
69+
terminalRef.current.focusTerminal();
6970
}
7071
},
7172
);
@@ -368,7 +369,6 @@ export const showCodeResult = (data) => {
368369
constterminal=terminalRef.current;
369370
terminal.pushToStdout(data.result);
370371
animateScroll.scrollToBottom({duration:30,container:terminal.terminalRoot.current});
371-
terminal.focusTerminal();
372372

373373
if(data.birdseye_url){
374374
window.open(data.birdseye_url);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp