mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-09-06 03:03:07 +03:00
fix(tui): restore composer focus after runtime controls
This commit is contained in:
+4
-1
@@ -531,7 +531,10 @@ export class NanobotTui {
|
||||
}
|
||||
},
|
||||
onStatus: (message) => { this.status.content = message },
|
||||
onVisibilityChange: () => this.updateMeta(),
|
||||
onVisibilityChange: (visible) => {
|
||||
this.updateMeta()
|
||||
if (!visible) this.composer.focus()
|
||||
},
|
||||
},
|
||||
)
|
||||
this.title.add(this.titleText)
|
||||
|
||||
Reference in New Issue
Block a user