Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
26140783
Commit
26140783
authored
Mar 23, 2020
by
ioedeveloper
Committed by
Liana Husikyan
Apr 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auto-scroll to bottom on keypress
parent
459acbe1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
terminal.js
src/app/panels/terminal.js
+2
-4
No files found.
src/app/panels/terminal.js
View file @
26140783
...
...
@@ -195,7 +195,7 @@ class Terminal extends Plugin {
</div>
`
self
.
_view
.
term
=
yo
`
<div class="
${
css
.
terminal_container
}
"
data-id="terminalContainer" onscroll=
${
throttle
(
reattach
,
10
)
}
>
<div class="
${
css
.
terminal_container
}
"
tabindex="-1" data-id="terminalContainer" onscroll=
${
throttle
(
reattach
,
10
)}
onkeypress=
${
focusinput
}
>
${
self
.
_components
.
autoCompletePopup
.
render
()}
<div class="bg-secondary" data-id="terminalContainerDisplay" style="
position: absolute;
...
...
@@ -303,9 +303,7 @@ class Terminal extends Plugin {
})
function
focusinput
(
event
)
{
if
(
self
.
_view
.
journal
.
offsetHeight
-
(
self
.
_view
.
term
.
scrollTop
+
self
.
_view
.
term
.
offsetHeight
)
<
50
)
{
refocus
()
}
refocus
()
}
function
refocus
()
{
self
.
_view
.
input
.
focus
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment