term.js icon indicating copy to clipboard operation
term.js copied to clipboard

Switch focus with multiple term.js instance on one page

Open jhiemer opened this issue 11 years ago • 3 comments

Hi there, first of all thanks for this great project. I like working with it a lot. Up today I used only one term.js session window per browser tab. I tried to enhance this, to multiple term.js windows in an tabbing widget. This works so far, the instances are created, the data is received. The only issue I have is the focus of the windows. The focus for typing etc. always stays on the last opened window. Is there are a way to handle that?

Would be great to hear some ideas!

jhiemer avatar Jan 09 '14 09:01 jhiemer

+1 There is no way actualy to unbind and rebind event on the window (like paste, copy). You saw the problem in tty.js I think. Thanks

xxorax avatar Jan 10 '15 01:01 xxorax

Could you tell me which browser and OS you're using? I've never run into this focus issue.

chjj avatar Jan 10 '15 03:01 chjj

I use ubuntu 14.04 with Chromium Version 39 About copy/paste, I mistake : it work fine, there is focus method I didn't see (maybe it needs a quick doc about the good API ?). All the screenkeys work great in the example of termjs, but however, I don't know why they don't work in tty.js. Thanks

xxorax avatar Jan 10 '15 05:01 xxorax