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

Restore the "paste" terminal event #674

Merged
merged 2 commits into from
Jun 6, 2017
Merged

Conversation

parisk
Copy link
Contributor

@parisk parisk commented May 27, 2017

Restores the paste terminal event (which is also used in the demo).

Fixes #671.

@parisk parisk requested a review from Tyriar May 27, 2017 12:33
@parisk parisk mentioned this pull request May 27, 2017
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 68.971% when pulling 616f069 on issue-#671-restore-paste-event into 35b32b7 on master.

@@ -82,6 +82,8 @@ export function pasteHandler(ev: ClipboardEvent, term: ITerminal) {
text = prepareTextForTerminal(text, term.browser.isMSWindows);
term.handler(text);
term.textarea.value = '';
term.emit('paste', text);
Copy link
Member

Choose a reason for hiding this comment

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

What's listening for this event exactly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The demo and any app that wants to consume the paste event in a single place, as it can occur both in the hidden textarea and the terminal element, depending on the browser.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 68.986% when pulling db9fe53 on issue-#671-restore-paste-event into 42724c7 on master.

@parisk parisk merged commit c4a2f79 into master Jun 6, 2017
@Tyriar Tyriar deleted the issue-#671-restore-paste-event branch June 6, 2017 17:58
@Tyriar Tyriar added this to the 2.7.0 milestone Jun 6, 2017
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.

3 participants