sproutcore/sproutcore — Issue #682: SC.ButtonView doesn't become first responder with SC.PUSH_BEHAVIOR
Author: workmanw
Created: 2012-01-06 21:21:36+00:00
State: open
Labels: desktop

@mitchless and I ran into an issue this afternoon and I traced it down to SC.ButtonView not becoming first responder when it's in using "push" behavior.

Here's the run down. We've got a single field on popup pane that takes a big long key value. 99.9% of the time the user will copy and paste their key into this field, then they'll click the 'OK' button immediately afterwards. Because SC.ButtonView does not become first responder the SC.TextFieldView never blurs and in turn does not commit the editing. This results in our controller value being out of sync with the view.

A little investigation seems to indicate we've gone back and forth with this behavior. It seems like the Apple guys changed this functionality, then changed it back in one of their more recent push backs ( ec23792 ) . @juanpin can you shed some light on the reason for this functionality?

Other commits where we've changed this functionality: 570dce8f2 7846661b