mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
get focus to dock tab content after resize
Signed-off-by: Yangjun Wang <yangjun.wang@wartsila.com>
This commit is contained in:
parent
bddc6b33e3
commit
6cae138e65
@ -48,6 +48,7 @@ export class EditorPanel extends React.Component<Props> {
|
|||||||
|
|
||||||
onResize = () => {
|
onResize = () => {
|
||||||
this.editor.resize();
|
this.editor.resize();
|
||||||
|
this.editor.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
onCursorPosChange = (pos: Ace.Point) => {
|
onCursorPosChange = (pos: Ace.Point) => {
|
||||||
|
|||||||
@ -152,6 +152,7 @@ export class Terminal {
|
|||||||
onResize = () => {
|
onResize = () => {
|
||||||
if (!this.isActive) return;
|
if (!this.isActive) return;
|
||||||
this.fitLazy();
|
this.fitLazy();
|
||||||
|
this.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
onActivate = () => {
|
onActivate = () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user