Commit 8f28e07e authored by davidzagi93@gmail.com's avatar davidzagi93@gmail.com

fixed resizing of the terminal

parent fed80733
......@@ -125,6 +125,7 @@ class Terminal extends Plugin {
}
renderComponent () {
ReactDOM.render(
<RemixUiTerminal
event = {this.event}
......
......@@ -260,7 +260,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
props.event.trigger('resize', [terminalTopOffset])
setToggleDownUp('fa-angle-double-down')
}
console.log(props.event, 'event.trigger')
}
const focusinput = () => {
......@@ -304,6 +303,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
}
if (event.which === 13 && !autoCompletState.showSuggestions) {
if (event.ctrlKey) { // <ctrl+enter>
console.log(event.which === 32, ' enter key')
// on enter, append the value in the cli input to the journal
inputEl.current.focus()
} else { // <enter>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment