position: relative;
}
-.terminal:focus {
+.terminal.focus {
outline: none;
}
* HACK: to fix IE's blinking cursor
* Move textarea out of the screen to the far left, so that the cursor is not visible.
*/
- text-indent: -9999em;
+ /*text-indent: -9999em;
opacity: 0;
width: 0;
height: 0;
- z-index: -10;
+ z-index: -10;*/
}
.terminal .terminal-cursor {
color: #000;
}
-.terminal:not(:focus) .terminal-cursor {
+.terminal:not(.focus) .terminal-cursor {
outline: 1px solid #fff;
outline-offset: -1px;
background-color: transparent;
}
-.terminal:focus .terminal-cursor.blinking {
+.terminal.focus .terminal-cursor.blinking {
animation: blink-cursor 1.2s infinite step-end;
}
this.send('\x1b[I');
}
+ this.element.classList.add('focus');
this.showCursor();
this.textarea.focus();
Terminal.focus = this;
return;
}
+ this.element.classList.remove('focus');
this.cursorState = 0;
this.refresh(this.y, this.y);
this.textarea.blur();