Hi,
Some time ago, during the discussion for focusing the "last active" widget when the last document is closed, I found that invoking Search Next/Previous Message via keybinding will not work if there are no open documents. As it turns out, cb_func_search_action() checks for an open document, and lets only Search FiF if there isn't any. Here is a fix. It not very pretty, with multiply return-s, it would be nicer to place the doc-related code and keys in a default: case of the new switch.