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 21:38:27 +0000 (23:38 +0200)
commit96f0f3669892d71fa4a9f1bd10dd71b469bde53d
treee30791a979a2fbaab3ce4d27ca1ba315964956ec
parented1772c5bc42e8f1fc9ca73359d51ef0ee8eba15
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