| Ticket UUID: | 88c9e0928bfdaef9d8959a0ac01ad85be8124a71 | |||
| Title: | Treeview: wrong keyboard navigation with -selectmode none | |||
| Type: | Bug | Version: | 8.7a4 | |
| Submitter: | emiliano | Created on: | 2020-05-02 23:23:41 | |
| Subsystem: | 88. Themed Tk | Assigned To: | fvogel | |
| Priority: | 5 Medium | Severity: | Important | |
| Status: | Closed | Last Modified: | 2020-05-09 12:43:02 | |
| Resolution: | Fixed | Closed By: | fvogel | |
| Closed on: | 2020-05-09 12:43:02 | |||
| Description: |
Treeview keyboard navigation doesn't adjust the view when the item focus changes due to <Up> and <Down> keys when the option -selectmode is set to "none"
Demo code:
package require Tk
pack [ttk::treeview .tv -show tree -selectmode none]
for {set i 0} {$i < 100} {incr i} {
.tv insert {} end -text [format {element #%02d} $i]
}
# focus the first child
focus .tv
.tv focus [lindex [.tv children {}] 0]
Just press the <Down> key and the focus ring disappears down the display without visual feedback on which child is selected.
Attached patch solves the issue.
| |||
| User Comments: |
fvogel added on 2020-05-09 12:43:02:
Merged in core-8-6-branch and trunk. fvogel added on 2020-05-03 09:09:31: Correct, thank you! I have committed your patch as [00b6fecfee]. | |||
Attachments:
- treeview.tcl.diff [download] added by emiliano on 2020-05-02 23:24:42. [details]
