| Ticket UUID: | 831496 | |||
| Title: | BWidget combobox popdown keyboard traversal broken | |||
| Type: | Bug | Version: | None | |
| Submitter: | jenglish | Created on: | 2003-10-28 02:13:46 | |
| Subsystem: | bwidget | Assigned To: | damonc | |
| Priority: | 9 Immediate | Severity: | ||
| Status: | Closed | Last Modified: | 2003-11-11 07:02:51 | |
| Resolution: | None | Closed By: | damonc | |
| Closed on: | 2003-11-11 00:02:51 | |||
| Description: |
In the combobox, when the listbox is popped down, <Key-Up> and <Key-Down> could be used to change the selected item, and <Key-Return> would select it and unpost the listbox. Now (combobox r1.26), pressing <Key-Up> or <Key-Down> immediately unposts the listbox after changing the selected item. | |||
| User Comments: |
damonc added on 2003-11-06 07:05:18:
Logged In: YES user_id=50387 I'm on it. I will commit a fix when I get home tonight. Damon andreas_kupries added on 2003-11-06 06:52:15: Logged In: YES user_id=75003 Reopening. Damon, it seems that your fix to the combobox keyboard traversal broke the selection in the list via the mouse. To reproduce: * Start the bwidget demo * Click into the font selector combobox at the top left. * When using the arrow keys the listbox pops down, an entry can be selected, and return closes the list, the selection appears in the entry. * Now use the mouse to click the list open, and click on an item _different_ from the one in the entry. The listbox goes away, that is ok. However the selected item is _not_ shown in the entry. That is incorrect. damonc added on 2003-10-28 12:20:02: Logged In: YES user_id=50387 Fixed and committed as well as made the BWidget listbox able to handle the same feature (by adding keyboard navigation). damonc added on 2003-10-28 12:06:58: Logged In: YES user_id=50387 Fixed and committed as well as made the BWidget listbox able to handle the same feature (by adding keyboard navigation). damonc added on 2003-10-28 11:36:18: Logged In: YES user_id=50387 This was most definitely introduced with my changes. I will fix and commit shortly. nobody added on 2003-10-28 10:15:51: Logged In: NO
Followup followup: the bug was introduced in revision 1.27,
not 1.26.
This looks like the culprit (~line 422, and again ~line
439):
::bind $listb <<ListboxSelect>> \
"ComboBox::_select $path \[%W selection
get]"
Also: the $listb bindings are broken:
(ComboBox::_create_popup, end of function):
::bind $listb <Return> [list ComboBox::_select $path]
Pressing <Key-Return> with the listbox posted now raises an
error. (It looks like these bindings were broken prior to
1.25 (improper [eval] quoting), fixed in 1.26, then broken
again in r1.27.)
jenglish added on 2003-10-28 09:17:32: Logged In: YES user_id=68433 Followup: rolling combobox.tcl back to r1.25, with no other changes, restores the old behaviour. I don't see any obvious changes between r1.25 and r1.26 that look like they would cause this difference... | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki