Ticket #1480 (closed defect: fixed)
Initially focused wxDialog control doesn't get EVT_SET_FOCUS
| Reported by: | kasplat | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wxOSX-Cocoa | Version: | |
| Keywords: | focus | Cc: | kasplat |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
Per Robin's request I'm submitting this as a bug...
Kevin said:
It looks like we are back to auto-selecting the text of a
TextEntryDialog when the dialog appears on Windows. This is fine
with me, but the Mac version doesn't do this. I seem to remember
us discussing this before, is the lack of text selection a Apple
Human Interface Guideline (HIG) or is the Mac code just lagging
behind? I dislike the lack of text selection for single line fields in
text dialogs, so I'm curious :)
Hmm, I just tested on Windows and Mac to double-check behaviour
of plain TextCtrls and it looks like on Windows as you tab between
fields all the text is auto-selected for plain, password, and
TE_RICH2 styles. On the Mac however, all the text is selected for
the password field, but the cursor position is remembered for plain
and rich text style variations, so the text isn't auto-selected. I love
cross-platform issues ;-)
Robin said:
TextCtrl auto selection is up to the specific wx port to implement or
not. wxMSW does it because it is common behavior in other
Windows apps. wxMac probably should do it too as I see it
happening there too (System Prefrences for example,) although I
don't know if the HIG has anythign to say about it or not. Please
enter a bug report about this.
