You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to copy/paste in safari using cmd + c / cmd + v on latest Safari and term.js (v0.0.7) doesn't work.
copy
The keypress handler swallows cmd + c, and doesn't let the browser do its thing.
paste
Paste events are tricky in Safari - you need some kind of input element or contenteditable target for the paste event to fire. Traditional workarounds include catching a keydown for cmd + v and quickly focusing an editable element and catching paste on that.
The text was updated successfully, but these errors were encountered:
Upon further investigation I think the proper course of action is probably for term.js to always have a hidden input element. It seems like it already does this in a limited fashion for mobile browsers. A hidden text element will allow you to much more reliably capture paste events.
Hello, can you test the firefox patch #51 ? it fix also for Chrome.
But CTRL+C don't work also in firefox (it deselect the text) but menubar copy work.
Trying to copy/paste in safari using cmd + c / cmd + v on latest Safari and term.js (
v0.0.7
) doesn't work.copy
The keypress handler swallows cmd + c, and doesn't let the browser do its thing.
paste
Paste events are tricky in Safari - you need some kind of input element or contenteditable target for the
paste
event to fire. Traditional workarounds include catching a keydown for cmd + v and quickly focusing an editable element and catching paste on that.The text was updated successfully, but these errors were encountered: