Ensure wxGenericListCtrl item selected from keyboard is visible
When using the keyboard to select an item by typing the first characters of
its name, we need to make the item visible in addition to selecting it.
See #16336.
(cherry picked from commit 306597c4fa
)
This commit is contained in:
committed by
Vadim Zeitlin
parent
99262787cb
commit
143e55b8df
@@ -614,6 +614,7 @@ wxGTK:
|
||||
- Fix coordinates of wxSetCursorEvent propagated to parent windows.
|
||||
- Fix GTK+ warnings when refreshing wxListCtrl items (Scott Talbert).
|
||||
- Fix using wxHTTP and wxFTP from worker thread.
|
||||
- Make items selected from keyboard visible in wxListCtrl (Jonathan Dagresta).
|
||||
|
||||
wxMSW:
|
||||
|
||||
|
@@ -2994,6 +2994,7 @@ void wxListMainWindow::OnChar( wxKeyEvent &event )
|
||||
SetItemState(item,
|
||||
wxLIST_STATE_FOCUSED | wxLIST_STATE_SELECTED,
|
||||
wxLIST_STATE_FOCUSED | wxLIST_STATE_SELECTED);
|
||||
EnsureVisible(item);
|
||||
|
||||
// Reset the bell flag if it had been temporarily disabled
|
||||
// before.
|
||||
|
Reference in New Issue
Block a user