Version: (using KDE KDE 3.5.8) Installed from: SuSE RPMs settings -> accounts -> pop3 type -> host and port edit boxes. Cannot paste anything. Yes my keyboard is working and I can paste the desired text into login for example.
I can not reproduce. Pasting works fine here, both with keyboard and with mouse. The port edit only allows numbers to be pasted.
I use KMail from OS 10.3, it is Enterprise 1.9.6, sorry for not mentioning it before.
I am also using enterprise, and it doesn't happen for me. Does this happen also in other KDE edit boxes for numbers? I doubt it is a KMail bug.
I tested it again and I see what it is happening -- KMail tries to be smart and it silently rejects pasting anything invalid. It is wrong (imho) -- user should be able to paste "port 115" into port edit-box and delete "port " phrase. The same goes for host -- I should be able to paste "host:xxx.com" and then edit it. Current behaviour forces user to either very exact copying or launching text editor to make those corrections. Of course KMail should not accept invalid entries, but should allow to edit (correct) them. More like a wish now ;-)
PS. Anyway, current behaviour Kmail+Klipper can frustrate a lot of people because it is usually that user copies settings for account from mail provider from WWW. And Klipper does not show spaces. So user can copy "pop3.mail.com " (space at then end, Konqueror adds them) and think long why KMail does not accept perfectly valid entry.
Reassigning to kdelibs then, as all KNumInput widgets have the same behaviour.
kdelibs 4.x is frozen for new features. In KDE Frameworks 5 KNumInput is deprecated in favour of QSpinBox. All feature requests should go to Qt.