switcher: make the dialog less fussy
commit53e17cc3ac89f43eb9db619ca7070ead25633117
authorDavid Aguilar <davvid@gmail.com>
Fri, 20 Jan 2023 07:30:59 +0000 (19 23:30 -0800)
committerDavid Aguilar <davvid@gmail.com>
Fri, 20 Jan 2023 07:30:59 +0000 (19 23:30 -0800)
treef2df68320050f72d4a976e56fc95a4dad7d5ecae
parent4fed626a553d3a703362564cf16b8202ad80222d
switcher: make the dialog less fussy

Catch the Enter/Return keys rather than hooking into the activated and
entered events.

These events make the dialog close itself at seemingly random times, for
example when the widgets gain focus.

Emit a signal to signal when items should be activated.

Related-to: #1282
Signed-off-by: David Aguilar <davvid@gmail.com>
cola/widgets/switcher.py