diff --git a/src/RegWindow.c b/src/RegWindow.c index 846ad8b378..00ff6929c6 100644 --- a/src/RegWindow.c +++ b/src/RegWindow.c @@ -451,6 +451,9 @@ regWindowLedger( Widget parent, Account **acclist, int ledger_type ) NULL ); position = 0; /* puts the buttons in the right place */ + + /* traverse to the buttons, when leaving the table */ + xaccNextTabGroup (regData->ledger->table, buttonform); /* The "Record" button */ widget = XtVaCreateManagedWidget( RECORD_STR, @@ -462,16 +465,13 @@ regWindowLedger( Widget parent, Account **acclist, int ledger_type ) XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, position+1, XmNshowAsDefault, True, - XmNnavigationType, XmEXCLUSIVE_TAB_GROUP, + XmNnavigationType, XmTAB_GROUP, NULL ); XtAddCallback( widget, XmNactivateCallback, recordCB, (XtPointer)regData ); regData->record = widget; - /* traverse to the buttons, when leaving the table */ - xaccNextTabGroup (regData->ledger->table, widget); - /* The "Cancel" button */ position++; @@ -484,7 +484,6 @@ regWindowLedger( Widget parent, Account **acclist, int ledger_type ) XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, position+1, XmNshowAsDefault, True, - /* XmNnavigationType, XmTAB_GROUP, */ XmNnavigationType, XmEXCLUSIVE_TAB_GROUP, NULL ); @@ -502,7 +501,6 @@ regWindowLedger( Widget parent, Account **acclist, int ledger_type ) XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, position+1, XmNshowAsDefault, True, - /* XmNnavigationType, XmTAB_GROUP, */ XmNnavigationType, XmEXCLUSIVE_TAB_GROUP, NULL ); @@ -554,7 +552,7 @@ regWindowLedger( Widget parent, Account **acclist, int ledger_type ) XmNleftPosition, position, XmNrightAttachment, XmATTACH_POSITION, XmNrightPosition, position+1, - XmNnavigationType, XmTAB_GROUP, /* don't tab here! */ + XmNnavigationType, XmNONE, /* don't tab here! */ NULL ); regData->balance = widget;