Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions gramps/gui/views/navigationview.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,17 @@ def key_press_handler(self, widget, event):
if self.active:
if event.type == Gdk.EventType.KEY_PRESS:
if event.keyval == Gdk.KEY_c and match_primary_mask(event.get_state()):
# Do not shadow the standard Copy of a focused
# text-editable widget (e.g. a sidebar/filter entry).
# The focused editable owns Copy/Cut/Paste, so let the
# key event propagate to it instead of copying the
# selected list object to the Gramps clipboard. The
# object copy is still performed when the list/tree
# itself (not a text entry) holds the focus. (Mantis
# #6170)
focus = self.uistate.window.get_focus()
if isinstance(focus, (Gtk.Editable, Gtk.TextView)):
return False
self.call_copy()
return True
return super(NavigationView, self).key_press_handler(widget, event)
Expand Down
Loading