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

Commit4c8d5c1

Browse files
committed
Move cursor to end after history navigation in shell
1 parentcdf72e7 commit4c8d5c1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎frontend/src/shell/Terminal.jsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,12 @@ export default class Terminal extends Component {
163163
this.props.noAutomaticStdout
164164
);
165165

166-
this.setState(toUpdate)
166+
this.setState(toUpdate);
167+
constinput=this.terminalInput.current;
168+
setTimeout(()=>{
169+
// Move cursor to end
170+
input.selectionStart=input.selectionEnd=10000;
171+
},30);
167172
}
168173

169174
/* istanbul ignore next: Covered by interactivity tests */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp