[Mono-bugs] [Bug 536816] textfield.Ended doesn't fire unless textfield.AllEditingEvents also 'wired up'

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jan 15 10:19:10 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=536816

http://bugzilla.novell.com/show_bug.cgi?id=536816#c2


Manfred Pohler <Manfred at pp-p.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Manfred at pp-p.net

--- Comment #2 from Manfred Pohler <Manfred at pp-p.net> 2010-01-15 15:19:08 UTC ---
I guess this is no bug!

There are two different handlers for "EditingEnded" and "DoneButtonClicked".
To enable the done button (return key) simply a handler must exist.
With AllEditingEvents you provide such a handler - therefore it works.

The sepcific handler is EditingDidEndOnExit. Simply add that handler and it
should do what you expect.
Something like:
MyTextBox.EditingDidEnd+=.... (to handle when edit ends)
--is called when editing ends
--no matter if Done button is used or the user (for an example) clicks another
text field
MyTextBox.EditinDidEndOnExit+=... (to handle "Done")
--is called when the user clicks done (dismisses the keyboard)
--the handler can be empty - it must just be present.

If you are working with delegates (MyTextBox.Delegate=....) the methods to
override are "ShouldReturn" and "ShouldEndEditing"

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list