Commit 0a4d7cd
committed
jsdialog: add id to treeview entries to preserve focus across updates
Treeview rows had no id attribute. When pressing Enter on a treeview
entry, core triggers _updateWidgetImpl.
That method saves document.activeElement.id, rebuilds the widget, then
tries to restore focus by finding an element with that the old id. Since
the button had no id the fallback of sending focus to the document body
happens.
Use the same fix and pattern as:
commit 3f985cb
Date: Tue Jun 17 13:23:38 2025 +0530
iconview: added support for keyboard navigation after click
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Ie37a93dc52d41668169a8c03bcae23c82ad9c7101 parent 54157e3 commit 0a4d7cd
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
370 | 373 | | |
371 | 374 | | |
372 | 375 | | |
| |||
0 commit comments