Version: 1.8.1 (using KDE KDE 3.4.1) Installed from: Fedora RPMs OS: Linux On some old fashioned real world calculators I've used the last calculation gets repeated each time I hit the equals sign. This is useful if you're converting from bytes to MB for example as you can just do "/1024" and hit equals twice. kcalc doesn't seem to do this and I'm not sure why - I suspect I'm missing something obvious here.
Well, I'm not sure if you are missing something or not, but I also think this would be a good idea, easy to implement and useful. Also there could be a menu entry "repeat last operation" (with exactly the same function).
*** Bug 185457 has been marked as a duplicate of this bug. ***
I think it's a good idea to add this behavior but there have to be an option to disable it if needed
Git commit 0c4c775b9dd36c3a93a707f28ff15232165b301a by Christoph Feck, on behalf of Maximilian Schiller. Committed on 16/08/2018 at 22:26. Pushed by cfeck into branch 'master'. Repeat last action when pressing "=" or Enter This patch allows to press the equal sign again in order to repeat the last action again. For example "5+10" yields "15" on Enter and if you press Enter or equal sign again it repeats the "+ 10" by showing you "25" now. This behavior is disabled by default and can be turned on in KCalc's settings panel under "Misc". Differential Revision: https://phabricator.kde.org/D12099 M +10 -0 general.ui M +4 -0 kcalc.kcfg M +25 -1 kcalc_core.cpp M +4 -0 kcalc_core.h https://commits.kde.org/kcalc/0c4c775b9dd36c3a93a707f28ff15232165b301a
Thank you, it works as described and the setting is persisted so it keeps working the way I enjoy.