[Users] [Bug 3984] Copy-paste in find/filter field works incorrectly

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Fri Mar 9 19:21:07 CET 2018


--- Comment #1 from Andrej Kacian <andrej at kacian.sk> ---
Created attachment 1853
Cleaner handling of keypresses for quicksearch

The handling of key presses can a bit awkward in GTK. What happens here is that
the main window gets the keypress first, and the /Edit/Copy menu item gets
executed, while the GtkEntry in quicksearch box never even receives this
keypress event.

This has been sort-of handled for certain keypresses, in a rather messy way
(the main_window_accel_activate() and quicksearch_pass_key()) functions.
Attached patch changes it to be cleaner - if quicksearch has focus, main
window's accelerators are ignored, and instead the signal gets propagated
(well, re-emitted) directly to the quicksearch GtkEntry.

Although the behavior seems to be correct with this patch, and there seem to be
no side effects, I would still prefer if other people would test it, because
this solution seems too easy to be complete. :)

You are receiving this mail because:
You are the assignee for the bug.

More information about the Users mailing list