Skip to content

Commit

Permalink
Fix delete ignores selection in register cells.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jralls committed May 17, 2020
1 parent 0aeb4b5 commit 4479e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnucash/register/register-gnome/gnucash-sheet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4479e44

Please sign in to comment.