effects/overview: allow entering spaces in search field
In the Overview effect, pressing the space bar doesn't always insert a space character into the search field as one would expect; when the text in the search field matches any windows, it instead activates the highlighted window. At other times, it does insert a space as expected. This behavior is unpredictable and unintuitive, so this commit fixes the issue by intercepting the key input event and inserting a space when the search field has focus. In this state, the highlighted window can be activated using the enter/return key. When the search field doesn't have focus, a press of the space bar will continue to activate the selected window.
Please register or sign in to comment