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
21a010b7
Commit
21a010b7
authored
Sep 18, 2018
by
PaddyMc
Committed by
Rob Stupay
Nov 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue#1462: Added directional keys list iteration
parent
2f9b7329
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
15 deletions
+21
-15
terminal.js
src/app/panels/terminal.js
+20
-14
auto-complete-popup.js
src/app/ui/auto-complete-popup.js
+1
-1
No files found.
src/app/panels/terminal.js
View file @
21a010b7
...
@@ -427,23 +427,29 @@ class Terminal {
...
@@ -427,23 +427,29 @@ class Terminal {
removeAutoComplete
()
removeAutoComplete
()
}
}
}
else
if
(
event
.
which
===
38
)
{
// <arrowUp>
}
else
if
(
event
.
which
===
38
)
{
// <arrowUp>
var
len
=
self
.
_cmdHistory
.
length
if
(
self
.
_components
.
autoCompletePopup
.
data
.
_options
.
length
>
self
.
_components
.
autoCompletePopup
.
_elementsToShow
)
{
if
(
len
===
0
)
return
event
.
preventDefault
()
self
.
_components
.
autoCompletePopup
.
_view
.
autoComplete
.
children
[
1
].
onclick
(
event
)
if
(
self
.
_cmdHistory
.
length
-
1
>
self
.
_cmdIndex
)
{
}
else
{
self
.
_cmdIndex
++
var
len
=
self
.
_cmdHistory
.
length
if
(
len
===
0
)
return
event
.
preventDefault
()
if
(
self
.
_cmdHistory
.
length
-
1
>
self
.
_cmdIndex
)
{
self
.
_cmdIndex
++
}
self
.
_view
.
input
.
innerText
=
self
.
_cmdHistory
[
self
.
_cmdIndex
]
putCursor2End
(
self
.
_view
.
input
)
self
.
scroll2bottom
()
}
}
self
.
_view
.
input
.
innerText
=
self
.
_cmdHistory
[
self
.
_cmdIndex
]
putCursor2End
(
self
.
_view
.
input
)
self
.
scroll2bottom
()
removeAutoComplete
()
}
else
if
(
event
.
which
===
40
)
{
// <arrowDown>
}
else
if
(
event
.
which
===
40
)
{
// <arrowDown>
if
(
self
.
_cmdIndex
>
-
1
)
{
if
(
self
.
_components
.
autoCompletePopup
.
data
.
_options
.
length
>
self
.
_components
.
autoCompletePopup
.
_elementsToShow
)
{
self
.
_cmdIndex
--
self
.
_components
.
autoCompletePopup
.
_view
.
autoComplete
.
children
[
1
].
onclick
(
event
)
}
else
{
if
(
self
.
_cmdIndex
>
-
1
)
{
self
.
_cmdIndex
--
}
self
.
_view
.
input
.
innerText
=
self
.
_cmdIndex
>=
0
?
self
.
_cmdHistory
[
self
.
_cmdIndex
]
:
self
.
_cmdTemp
putCursor2End
(
self
.
_view
.
input
)
self
.
scroll2bottom
()
}
}
self
.
_view
.
input
.
innerText
=
self
.
_cmdIndex
>=
0
?
self
.
_cmdHistory
[
self
.
_cmdIndex
]
:
self
.
_cmdTemp
putCursor2End
(
self
.
_view
.
input
)
self
.
scroll2bottom
()
removeAutoComplete
()
}
else
{
}
else
{
self
.
_cmdTemp
=
self
.
_view
.
input
.
innerText
self
.
_cmdTemp
=
self
.
_view
.
input
.
innerText
}
}
...
...
src/app/ui/auto-complete-popup.js
View file @
21a010b7
...
@@ -78,7 +78,7 @@ class AutoCompletePopup {
...
@@ -78,7 +78,7 @@ class AutoCompletePopup {
}
}
}
}
function
handleListIteration
(
event
)
{
function
handleListIteration
(
event
)
{
if
(
event
.
srcElement
.
value
===
'true'
)
{
if
(
event
.
srcElement
.
value
===
'true'
||
event
.
which
===
40
)
{
if
((
self
.
_startingElement
+
self
.
_elementsToShow
)
<
self
.
data
.
_options
.
length
)
{
if
((
self
.
_startingElement
+
self
.
_elementsToShow
)
<
self
.
data
.
_options
.
length
)
{
self
.
_startingElement
+=
self
.
_elementsToShow
self
.
_startingElement
+=
self
.
_elementsToShow
}
}
...
...
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