feat: focus the previous/next message when one is deleted. If 0 messages, focus input

This commit is contained in:
2024-09-03 16:08:54 +02:00
parent 49c73a3d76
commit 950a528b2b
3 changed files with 5 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ export class List extends UINode {
if (idx === this.focused) {
if (this.focused > 0) this.focused--;
this.calculateTabIndex();
this.children[this.focused].focus()
}
return this;
}