-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QtVcp calculator physical keyboard support, quality of life things #3360
base: master
Are you sure you want to change the base?
QtVcp calculator physical keyboard support, quality of life things #3360
Conversation
Man these are some much needed improvements! I do see a few issues:
|
1 - unintended by me, but I believe the original calculator had that behavior before. I tried a couple of things and haven't fixed this yet. It may be intentional by the original author (@c-morley ?) Thank you for the testing and feedback, by the way! Really helps make the code better in the end. |
Definitely makes sense to look at them together.
Looks good, I wonder though, should CLR remove the pressed Operator? For example, if you press (or click) 5 +, there is no way to take back the +. In fact, if you press 5 + and then click say "x", it will multiply 5 x 5. Which I don't this is intended behavior... But this likely ties into 1 and 2 above.
Looks great, thank you!
I see now that it's because I was calling it as a dialog, I copied how QtDragonHD calls it, because I figured it was most like how it was intended to be used. If I call it stand alone, then I can get to Abort during crashes.
They're still there ... I use an extension called "Trailing Whitespace" by jkiviluoto which seems to work OK. I turned off trim on save though, as there are times when I don't want to change anything other than the line I'm editing and there is a ton of trailing white space. Anyways, it has the option and it works :)
Certainly makes sense! I agree with the Close button when used otherwise if it's possible.
You bet, I enjoy "breaking" code :) |
I made a quick screencap video of how the Apply/Cancel and Apply-Next/Back functions work. |
Thank you that is helpful! |
I discovered this thing is almost a direct PyQt port of a Qt C++ example. https://code.qt.io/cgit/qt/qtbase.git/tree/examples/widgets/widgets/calculator?h=5.5 I built the C++ example to test it and almost all of the quirks stem from that implementation. Trying to get proper behavior with that starting point is proving to be a mild nightmare. I can get one set of behaviors fixed but it tends to break another in the process. It's going to need a re-think and reimplementation, in my opinion, and I'm not sure I have the motivation for that right now. I will try to see if I can get it "good enough for now" with some known bugs, so the other work I did is at least not a waste. |
Provides much-enhanced support for physical keypad entry in the Calculator dialog as well as some other quality-of-life improvements.
acceptOnReturnKey
preferences option to send a "Apply Next" instead when it's available, for multi-field entries like the tool offset table