fix: fix the windows sharding bug

parent 98030def
<iframe #rdp [src]="trust(target)" (mouseenter)="active()"></iframe> <iframe #rdp [src]="trust(target)" (mouseover)="active()"></iframe>
...@@ -76,7 +76,6 @@ export class ElementGuacamoleComponent implements OnInit { ...@@ -76,7 +76,6 @@ export class ElementGuacamoleComponent implements OnInit {
} }
active() { active() {
this._logger.debug('focus');
this.el.nativeElement.focus(); this.el.nativeElement.focus();
} }
......
<div #term></div> <div #term (mouseover)="active()"></div>
...@@ -113,4 +113,8 @@ export class ElementTermComponent implements OnInit, AfterViewInit { ...@@ -113,4 +113,8 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
// this.term.write('\r\n\x1b[31mBye Bye!\x1b[m\r\n'); // this.term.write('\r\n\x1b[31mBye Bye!\x1b[m\r\n');
TermWS.emit('logout', NavList.List[this.index].room); TermWS.emit('logout', NavList.List[this.index].room);
} }
active() {
this.term.focus();
}
} }
...@@ -40,15 +40,15 @@ export class PagesControlNavComponent implements OnInit { ...@@ -40,15 +40,15 @@ export class PagesControlNavComponent implements OnInit {
}); });
NavList.List[index].hide = false; NavList.List[index].hide = false;
NavList.Active = index; NavList.Active = index;
if (!NavList.List[index].edit) { // if (!NavList.List[index].edit) {
if (NavList.List[index].type === 'ssh') { // if (NavList.List[index].type === 'ssh') {
NavList.List[index].Term.focus(); // NavList.List[index].Term.focus();
} else if (NavList.List[index].type === 'rdp') { // } else if (NavList.List[index].type === 'rdp') {
NavList.List[index].Rdp.focus(); // NavList.List[index].Rdp.focus();
} // }
} else { // } else {
//
} // }
} }
constructor() { constructor() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment