Fix delete ignores selection in register cells.

Don't clear the selection before passing the event to the entry's
keypress handler. Instead set the sheet selection from the entry
when the handler returns.
This commit is contained in:
John Ralls 2020-05-17 11:34:29 -07:00
parent 0aeb4b54ae
commit 4479e44363

View File

@ -1748,8 +1748,8 @@ pass_to_entry_handler (GnucashSheet *sheet, GdkEventKey *event)
// If sheet is readonly, entry is not realized
if (gtk_widget_get_realized (GTK_WIDGET(editable)))
{
gnucash_sheet_clear_selection (sheet);
result = gtk_widget_event (GTK_WIDGET(editable), (GdkEvent*)event);
gnucash_sheet_set_selection_from_entry (sheet);
}
return result;
}