Redirect unhandled Esc-key-presses to plugins
Review Request #104466 - Created April 2, 2012 and submitted
This patch catches unhandled Esc-key-presses in KateMainWindow and adds a signal that is forwarded by Kate::MainWindow to anybody interested in the signal. The patch also adds support for handling the signal in the search-plugin.
The search-plugin gets the signal and does what it is supposed to do. Hide the view if visible and clear the selections if not. The signal is not emitted when the Esc-key is used to close the search-bar or clear it's selections.
I think this patch is fine. It's not the "nicest" way of handling this (very special handling just for ESC), but imo it makes sense. Christoph, can you comment on the BIC thingy?
Review request changed
use event() in stead of eventFilter()
Revision 2 (+46 -7)