At the moment when a user clicks the swiftbutton to open the searchtemplate if they press back it closes the activity.
Is there a way I can simulate clicking the Cancel button or just close the searchtemplate
Sub Activity_KeyPress(KeyCode As Int) As Boolean'Return True to consume the eventIf KeyCode = KeyCodes.KEYCODE_BACK ThenIf dialog.Visible=TrueThen
dialog.Close(xui.DialogResponse_Cancel)
ReturnTrueEndIfEndIfEndSub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.