Changes made to ComboBox edit field are not passed through lcl layer and not captured.
Original Reporter info from Mantis: djenkins @dfjenkins
-
Reporter name: David Jenkins
Original Reporter info from Mantis: djenkins @dfjenkins
- Reporter name: David Jenkins
Description:
If text is changed in a ComboBox edit field the changes are not captured and hitting return does nothing. Debugging shows no keystrokes are passing down through lcl layer.
Need to catch when key events happen and pass them down through. But overriding keydown() and keyup() for NSComboBox does not work as the common FieldEditor is getting those key strokes not the NSComboBox.
NSComboBox does get textDidChange() and textDidEndEditing() notifications and NSApp.currentEvent will return the key NSEvent that can be passed to callback.keyEvent().
Patch attached.
Mantis conversion info:
- Mantis ID: 32829
- Fixed in revision: 56822 (#2b1a77d9)