Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't handle keyup that is handled by custom handler #2294

Merged
merged 2 commits into from Jul 8, 2019

Conversation

Tyriar
Copy link
Member

@Tyriar Tyriar commented Jul 8, 2019

Fixes #2293

@@ -512,29 +512,7 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp
* Apply key handling to the terminal
*/
private _bindKeys(): void {
const self = this;
this.register(addDisposableDomListener(this.element, 'keydown', function (ev: KeyboardEvent): void {
if (document.activeElement !== this) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will always return so we can safety remove this.

@Tyriar Tyriar merged commit 44a843b into xtermjs:master Jul 8, 2019
@Tyriar Tyriar deleted the fix_keyup branch July 8, 2019 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

keyup is handled when the custom key event handler returns false
1 participant