I have a custom search actionMode and I want to catch the OK (tick) button press to execute the search. The tick button doesn't seem to call onActionItemPressed(..).
What is the best way to capture the tick press?
// this is what I have:
@Override
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
switch (item.getItemId()) {
default:// ok button
if (search) applySearch();
stopActionMode();
okPressed=true;
KeyBoardUtil.hideKeyboard(SlideTabbedActivity.this, filterText);
}
return true;
}