Bug 485035 - Cannot enter IBAN for new SEPA transfer - cursor jumps around within text field
Summary: Cannot enter IBAN for new SEPA transfer - cursor jumps around within text field
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: ux-ui (show other bugs)
Version: 5.1.3
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-04 14:59 UTC by Stefan Seide
Modified: 2024-04-09 15:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Seide 2024-04-04 14:59:24 UTC
SUMMARY

cursor jumps randomly around while trying to enter an IBAN number for a new SEPA transfer.

STEPS TO REPRODUCE
1. Go to "Ausgang" -> "Neue Übereisung" (english might be "Outbox" -> "New Transfer")
2. Select bank account and "SEPA Überweisung"
3. Now try to enter the IBAN into the field like DE12340200...
4. As soon as a new digit for the next 4 char block is entered the cursor jumps back to the space between the current and the last 4-char block making it impossible to enter the IBAN with keybord. Every four chars you have to stop entering the IBAN and set cursor back to the position behind last number entered before next numbers can be typed.

Probably due to some non-working text field auto-formatter to enter spaces for easier readability?

OBSERVED RESULT

enter DE123 -> the cursor now jumps back to the place after the 2. Just typing ahaed would give the IBAN "DE1243" instead of "DE1234"

EXPECTED RESULT

The cursor must not jump around and let users enter the IBAN on char after another.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian stable (12 update 5)
(available in About System)
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8 

ADDITIONAL INFORMATION
Comment 1 Thomas Baumgart 2024-04-09 15:20:04 UTC
Git commit 6e4a1e48f037b1ee21d1ed5fd7df0b4322574f26 by Thomas Baumgart.
Committed on 09/04/2024 at 15:19.
Pushed by tbaumgart into branch 'master'.

Fix IBAN input verification
FIXED-IN: 5.2

M  +3    -1    kmymoney/mymoney/payeeidentifier/ibanbic/ibanbic.cpp
M  +22   -18   kmymoney/widgets/payeeidentifier/ibanbic/ibanvalidator.cpp
M  +2    -3    kmymoney/widgets/payeeidentifier/ibanbic/ibanvalidator.h

https://invent.kde.org/office/kmymoney/-/commit/6e4a1e48f037b1ee21d1ed5fd7df0b4322574f26