TAB key in ComboBox with Style=csDropDownList does not switch to the next TabStop control
Original Reporter info from Mantis: Petr-K
-
Reporter name:
Original Reporter info from Mantis: Petr-K
- Reporter name:
Description:
I use GTK 2.24
After a few hours I found two problems.
-
In the inner function EmulateEatenKeys inside HandleGTKKeyUpDown
call GtkWidgetIsA(TargetWidget, gtk_type_button) returns true and program falls into section designed for buttons and not into section for etries. After patching gtk2proc.inc, keyboard messages starts to arrive correctly. -
But TGtk2WSCustomComboBox.CanFocus returns false. Because GTK_WIDGET_CAN_FOCUS(WidgetInfo^.CoreWidget) returns false.
I fix it in the second part of the patch. But I'am not 100% sure with this solution.
Now focus switching works flawlessly.
Patch is included.
Steps to reproduce:
Place Panel on form.
Place ComboBox and Edit on Panel.
Set ComboBox.Style = csDropDownList
Set focus on ComboBox
Press TAB key - focus is not on Edit but on the Panel.
Mantis conversion info:
- Mantis ID: 25487
- Build: trunk #43585
- Version: 1.3 (SVN)