GNOME Bugzilla – Bug 666655
Can't insert dot from keypad when numlock is off
Last modified: 2016-10-11 08:12:06 UTC
Created attachment 204038 [details] [review] Insert decimal separator from keypad with numlock off Hi! Gcalctool has the _great_ feature of leaving you insert expression from the keypad even when numlock is turned off. This works for numeric keys, but not for the dot\delete key. This behaviour is - at least for me - annoying and unconsistent (it takes me a while realizing that the decimal separator is not inserted because numlock is off, when all works correctly). I attach a trivial patch that translates the KP_Delete keystroke into the decimal separator, as it is done for the other keys.
Review of attachment 204038 [details] [review]: Patch looks correct (however please set your email address, as I'm sure marcello@marcello-laptop.(none) is an invalid address), works, but I'm not sure if we want to do this, as this way the Delete key won't work anymore. Basically Delete doesn't work right now neither if we're typing at the end, but if we click between two characters and press the KP_Delete with numlock off, the next character after the cursor gets deleted. Some people might have been using this, and they will not be able to do it after this gets committed, if the KP_Delete changes to inserting a decimal. I guess this was the reason it did not get handled as all the other Keypad keys. But we will have to wait for the maintainer's opinion on this.
This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution.