Fix tab completion on exotic platforms
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 5 May 2014 21:38:27 +0000 (23:38 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 5 May 2014 22:39:55 +0000 (00:39 +0200)
commit5c72b02ea4197ab6ddac2841b25b41bf31d3160f
tree00b1aa494a45058ae90a52c1f9ca0c9ee5f85e9e
parent5f96e3350cdb42d4bc0c82ec08cb586f6ac74f2a
Fix tab completion on exotic platforms

Turns out that using the tab key as an action shortcut in an input widget
does not work reliably on all platforms, at least on OS/2 - sometimes,
the event filter would be called instead of triggering the action.

To make this more robust, we disable the action (just using it as a container
for the custom shortcut) and always catch and handle the key in the event
filter which we need anyway.

Thanks to TeLLie for bisecting this issue and finding the culprit on OS/2.
src/uisupport/tabcompleter.cpp