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
8f28e07e
Commit
8f28e07e
authored
Jul 19, 2021
by
davidzagi93@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed resizing of the terminal
parent
fed80733
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
terminal.js
apps/remix-ide/src/app/panels/terminal.js
+1
-0
remix-ui-terminal.tsx
libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx
+1
-1
No files found.
apps/remix-ide/src/app/panels/terminal.js
View file @
8f28e07e
...
@@ -125,6 +125,7 @@ class Terminal extends Plugin {
...
@@ -125,6 +125,7 @@ class Terminal extends Plugin {
}
}
renderComponent
()
{
renderComponent
()
{
ReactDOM
.
render
(
ReactDOM
.
render
(
<
RemixUiTerminal
<
RemixUiTerminal
event
=
{
this
.
event
}
event
=
{
this
.
event
}
...
...
libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx
View file @
8f28e07e
...
@@ -260,7 +260,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -260,7 +260,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
props
.
event
.
trigger
(
'resize'
,
[
terminalTopOffset
])
props
.
event
.
trigger
(
'resize'
,
[
terminalTopOffset
])
setToggleDownUp
(
'fa-angle-double-down'
)
setToggleDownUp
(
'fa-angle-double-down'
)
}
}
console
.
log
(
props
.
event
,
'event.trigger'
)
}
}
const
focusinput
=
()
=>
{
const
focusinput
=
()
=>
{
...
@@ -304,6 +303,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
...
@@ -304,6 +303,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
}
}
if
(
event
.
which
===
13
&&
!
autoCompletState
.
showSuggestions
)
{
if
(
event
.
which
===
13
&&
!
autoCompletState
.
showSuggestions
)
{
if
(
event
.
ctrlKey
)
{
// <ctrl+enter>
if
(
event
.
ctrlKey
)
{
// <ctrl+enter>
console
.
log
(
event
.
which
===
32
,
' enter key'
)
// on enter, append the value in the cli input to the journal
// on enter, append the value in the cli input to the journal
inputEl
.
current
.
focus
()
inputEl
.
current
.
focus
()
}
else
{
// <enter>
}
else
{
// <enter>
...
...
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