Comment 9 for bug 1415023

Revision history for this message
Jonas G. Drange (jonas-drange) wrote : Re: sim unlock/lock confirmation button dismisses keyboard but doesn't confirm till pressed again

16:37 < Elleo> jgdx, zsombi: okay, what seems to happen is that the button is *pressed* but it's not *clicked*, which I suspect happens because the button moves (due to the keyboard being dismissed), so the touch release event
               is no longer happening on the button's mousearea
16:38 < zsombi> [DARN]!
16:38 < Elleo> jgdx, zsombi: if you add a little debugging to AbstractButton.qml to print something onPressed you can see this happening (whereas onClicked doesn't fire)
16:38 < zsombi> Elleo: nice finding, dude!!!
16:38 < Elleo> zsombi: thanks :)
16:38 < zsombi> and that's bad
16:40 < zsombi> Elleo: I don't think we can really do much about that...
16:41 < Elleo> zsombi: yeah, my only idea would be to have "activeFocusOnPress: false" and take focus manually as part of the onClicked and onPressAndHold handlers, but that wouldn't be backward compatible for apps deliberately
               disabling activeFocusOnPress themselves (there'd have to be some other property to let them do that)