Skip to content

Commit

Permalink
Merge pull request #1766 from whydoubt/has_focus
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Oct 24, 2018
2 parents c77af88 + 4d556fc commit 16614b7
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 16614b7

Please sign in to comment.