Bug 252598

Summary: Date field keyboard entry problem
Product: [Applications] kmymoney Reporter: allan <agander93>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: SVN   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description allan 2010-09-28 00:54:51 UTC
Version:           SVN trunk (using KDE 4.4.4) 
OS:                Linux

In a new account, I wanted to enter the first transaction.  Because the date I wished to enter was last year, I double clicked the date to select it.  When I tried to enter numeric values, they were not accepted.  I then cleared the field and attempted to enter the day value, but the active date field was the year, when I was expecting to enter the day first.  The year field would accept only digits 0 to 7, and 't', although I did not try some non-alpha keys.
Attempting to backspace to the date field, I could only backspace within the year field, not from there to the month/day.  The cursor keys worked though.
Having entered the above description and returning to KMM, now, having cleared the date, entering a zero does now go to the day field, and on going back again, it goes to the year field again.  I'll stop now.

Reproducible: Sometimes

Steps to Reproduce:
as above

Actual Results:  
as above

Expected Results:  
When the date field has been double clicked and is showing as selected/highlighted, it should accept logical numeric input consistently.

As to which date sub-field is initially active,perhaps that should be governed by the locale.

Ideally, other separators should be acceptable, not just the '.' I find.

I have a faint recollection of reporting something similar previously, but nothing showed up on searching.
Comment 1 allan 2010-09-28 00:59:54 UTC
BUG: 232909 shows as fixed. (I'd searched only open bugs.)
Comment 2 Alvaro Soliverez 2010-09-28 02:19:33 UTC
The date field is actually three fields. If you double click on the day, that's what you'll edit. If you click on the year or to its right, the year will get selected. It looks ok to me.
Comment 3 Cristian OneČ› 2010-10-28 22:22:08 UTC
SVN commit 1190765 by conet:

BUG: 252598
When the whole date is selected in the date edit and a key is pressed behave in the same way as if the date was cleared and a key is pressed.

 M  +4 -3      kmymoneydateinput.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1190765
Comment 4 Cristian OneČ› 2010-10-28 22:23:10 UTC
SVN commit 1190766 by conet:

BUG: 252598
When the whole date is selected in the date edit and a key is pressed behave in the same way as if the date was cleared and a key is pressed.
Merged into the stable branch.

 M  +4 -3      kmymoneydateinput.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1190766