Comment 10 for bug 1788058

Revision history for this message
In , Frankzz (frankzz) wrote :

Created attachment 8251
Fix context menu not opening after shift/ctrl key by connecting correct key-release-event (bug #14621, #14743, #14999)

The bug 14743 and the bug 14999 are different manifestations of this bug.

To sum it up: whenever the shift or the control key is pressed or released the context menu will not pop up anymore until catfish is closed and reopened. So even entering a capital letter in the search edit field or multi-selection in the result list is sufficient to reproduce the bug.

The problem appears to have been introduced in catfish 1.4.1
commit 2829d07 Fix click issues in treeview (LP: #1547807, #1523164)

The reason for the bug is that the key-release-event is connected to the key-press handler instead of the key-release handler. Catfish uses this to maintain a list of currently pressed modifier keys and does not allow any custom click actions if shift or control key is in this list. The bug prevents catfish from ever removing any recorded keys.

The FIX is simple. On an installed system just execute this line:

sudo sed -e 's/"key-release-event" handler="on_catfish_window_key_press_event"/"key-release-event" handler="on_catfish_window_key_release_event"/' -i /usr/share/catfish/ui/CatfishWindow.ui

This has been tested on xubuntu 18.04, the first LTS that includes a catfish version that exhibits this problem.

The proper git patch is attached.