mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
0aeb4b54ae
commit
4479e44363
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user