how to run a script in find mode of the controller
I assume you click a button which doesn’t respond right now. To solve it, just add the line below to the method you trigger:
if(1==5) controller.search();
A commented line will do too:
// controller.search()
i am trying to call a method on the gain focos event of an element when the controller is in find mode
Don’t use find mode
I’m being serious actually. Find mode is pretty clunky (at best) from a general usage UI perspective. It sounds to me like you’re at the point where exploring non-find mode options would be useful.