Bug 491345 - make cursor always visible
Summary: make cursor always visible
Status: CONFIRMED
Alias: None
Product: kcalc
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.05.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Gabriel Barrantes
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-06 11:34 UTC by Eugene Savitsky
Modified: 2024-09-02 18:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Savitsky 2024-08-06 11:34:04 UTC
1. Enter some formula, see the result
2. Move the cursor to the left (like add a number)
3. Click on the result number (for copying the result)
4. Cursor is gone
5. Press some number or symbol, it will print in place of hided cursor
Comment 1 Gabriel Barrantes 2024-08-06 18:48:15 UTC
Yeah, I have been planning to make this change for a while. This is certainly one of the reasons that make it necessary.
Comment 2 Gabriel Barrantes 2024-09-01 03:03:36 UTC
if we implement this, most keyboard shortcuts will go away, is that ok?
Comment 3 Eugene Savitsky 2024-09-01 14:34:48 UTC
You mean such CTRL-H for history or that you could define yourself from "Configure Keyboard Shortcuts"?

I personally do not use it, but someone could...
Comment 4 Gabriel Barrantes 2024-09-01 16:20:50 UTC
(In reply to ezh from comment #3)
> You mean such CTRL-H for history or that you could define yourself from
> "Configure Keyboard Shortcuts"?
> 
> I personally do not use it, but someone could...

I am trying to preserve all those, I mean shortcuts like "t" for the tan, "s" for sin and so on, you can see them by holding the "ctrl" (in scientific/stats/numeral system mode).
So, for example now an "s" keystroke is equivalent to clicking the sin button and the whole sin( is inserted, after the change on an "s" will be inserted. I guess we could add an auto completer to compensate...

Basic mode will go completely unaffected by this.
Comment 5 Eugene Savitsky 2024-09-02 17:24:23 UTC
My use cases are very simple: 
getting product prices with discounts or margin: 100*,6= 60 
- VAT: 100/1,22=81,97
+ VAT: 100*1,22=122
SUM: 10+45+72+45=172
proportion: 20*8/100=1,6
etc and then change the some of the value to see the different result

I have a very basic understanding what tan or sin is and what should be used for. :)
So, I'm not the target audience for scientific mode...
Comment 6 Gabriel Barrantes 2024-09-02 18:52:46 UTC
(In reply to ezh from comment #5)
> My use cases are very simple: 
> getting product prices with discounts or margin: 100*,6= 60 
> - VAT: 100/1,22=81,97
> + VAT: 100*1,22=122
> SUM: 10+45+72+45=172
> proportion: 20*8/100=1,6
> etc and then change the some of the value to see the different result
> 
> I have a very basic understanding what tan or sin is and what should be used
> for. :)
> So, I'm not the target audience for scientific mode...

I see, either way most (probably all) calculators with "editable inputs" have it, so is probably the best, I waned to include it since the beginning but it was too much... also, it makes entirely clear that the input is editable, seems that some users didn't notice it right away due to the missing cursor. Maybe a poll in KDE Discuss would be good... Patch is ready actually.