Handle Return in switchpanel.
commitae91ee4b0a6238b12d60bfdc8ada38ba326bd1e3
authorIain Patterson <wm@iain.cx>
Thu, 30 May 2013 14:57:42 +0000 (30 15:57 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 7 Jun 2013 18:54:07 +0000 (7 19:54 +0100)
tree95894f75b5fd06115bc213bc8ef0cbc2131d4f82
parenta6b1833b41dc44b6fa1327996d579024ed9ba72d
Handle Return in switchpanel.

Explicitly match a Return keypress in the switchpanel, so that the
currently selected window is focused without the keypress event being
handled elsewhere.

Pressing Return to commit the window selection is intuitive but other
shortcuts may bind Return.  Any keypress not explicitly handled in the
switchpanel code will be passed through to other shortcut processing.
If, for example, alt+return were mapped to Select Window and the
switchpanel is open, pressing return while holding alt would both commit
the window change AND select the window, which is not intuitive.
src/cycling.c