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 (#935)
Signed-off-by: Yangjun Wang <yangjun.wang@wartsila.com> Co-authored-by: Yangjun Wang <yangjun.wang@wartsila.com>
This commit is contained in:
parent
25aac57a86
commit
44190c7321
@ -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