mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Make the keypad 'minus' key enter a dash in the date entry for ISO dates.
Fixes Bug #345096. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14375 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
625f3de519
commit
f6f9b53e9a
@ -464,6 +464,8 @@ gnc_handle_date_accelerator (GdkEventKey *event,
|
||||
return TRUE;
|
||||
|
||||
case GDK_minus:
|
||||
case GDK_KP_Subtract:
|
||||
case GDK_underscore:
|
||||
if ((strlen (date_str) != 0) && (dateSeparator () == '-'))
|
||||
{
|
||||
const char *c;
|
||||
@ -484,9 +486,6 @@ gnc_handle_date_accelerator (GdkEventKey *event,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* fall through */
|
||||
case GDK_KP_Subtract:
|
||||
case GDK_underscore:
|
||||
if (event->state & GDK_SHIFT_MASK)
|
||||
g_date_subtract_days (&gdate, 7);
|
||||
else if (event->state & GDK_MOD1_MASK)
|
||||
|
Loading…
Reference in New Issue
Block a user