At the beginning where the options are listed add
</ label="Search Key", help="Choose the key to initiate a search", options="custom1,custom2,custom3,custom4,custom5,custom6", order=10 /> user_search_key="custom1";
</ label="Search Results", help="Choose the search method", options="show_results,next_match", order=11 /> user_search_method="show_results";
Near the beginning (where the modules are loaded) add
fe.load_module("objects/keyboard-search");
Near the middle (after the pointers section) add
// search
local search_surface = fe.add_surface(fe.layout.width * 0.5, fe.layout.height)
KeyboardSearch(search_surface)
.keys_pos([ 0.05, 0.4, 0.9, 0.5 ])
.search_key( my_config["user_search_key"] )
.mode( my_config["user_search_method"] )
.init()
You also need to configure one of the "Custom buttons" in AM Configure-->Controls-->Custom X = ? and also in the layout options.