Skip to content

Commit

Permalink
Merge pull request #1772 from whydoubt/fix_1767
Browse files Browse the repository at this point in the history
Only show cross-hairs when terminal has focus
  • Loading branch information
Tyriar authored Nov 26, 2018
2 parents 1db1770 + 19174dd commit 68d5ce9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1157,9 +1157,9 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
*/
public updateCursorStyle(ev: KeyboardEvent): void {
if (this.selectionManager && this.selectionManager.shouldColumnSelect(ev)) {
this.element.classList.add('xterm-cursor-crosshair');
this.element.classList.add('column-select');
} else {
this.element.classList.remove('xterm-cursor-crosshair');
this.element.classList.remove('column-select');
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/xterm.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
cursor: pointer;
}

.xterm.xterm-cursor-crosshair {
.xterm.column-select.focus {
/* Column selection mode */
cursor: crosshair;
}
Expand Down

0 comments on commit 68d5ce9

Please sign in to comment.