Skip to content

Commit

Permalink
Merge 4d556fc into 565f460
Browse files Browse the repository at this point in the history
  • Loading branch information
whydoubt authored Oct 24, 2018
2 parents 565f460 + 4d556fc commit 8abb336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export class Terminal extends EventEmitter implements ITerminal, IDisposable, II
}

public get isFocused(): boolean {
return document.activeElement === this.textarea;
return document.activeElement === this.textarea && document.hasFocus();
}

/**
Expand Down

0 comments on commit 8abb336

Please sign in to comment.