Pressing minus and plus keys followed by a number produces odd results
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Calculator App |
Fix Released
|
Medium
|
Samer Masterson |
Bug Description
To reproduce open calculator app and do the following:
1. Press minus (-)
2. Press plus (+) followed by 6. Note that it allows the calculation to continue with the calculation (see minus-plus-
3. Pres clear (c) twice to reset.
4. Press plus (+)
5. Press minus (-) followed by 6. Note that it shows the calculation to be "+-6" (see plus-minus-
Expected results: Step #2 should not allow the plus (+) to continue the calculation, it should behave similar to pressing times (x). Step #5 should either replace the plus (+) with a minus (-) when the minus is hit, or preferably, not allow the plus to be used to start a calculation-
Difficulty: MEDIUM
###### Desidered solution #####
1. Remove the option to add a + after a minus (hint: find the code that prevents to add a * or a / after a minus)
2. Remove the option to add a + as first operator (hint: find the function that prevents to add a * or a / as first operation
If you need an help, join #ubuntu-app-devel and ping WebbyIT
Related branches
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration)
- Ravi Vagadia: Approve
- Riccardo Padovani: Approve
-
Diff: 24 lines (+2/-1)2 files modifiedSimple/SimplePage.qml (+1/-1)
formula.js (+1/-0)
description: | updated |
tags: | added: hackday |
Changed in ubuntu-calculator-app: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in ubuntu-calculator-app: | |
assignee: | nobody → Samer Masterson (samer-f) |
status: | Triaged → In Progress |
Changed in ubuntu-calculator-app: | |
milestone: | none → 1.6 |
Changed in ubuntu-calculator-app: | |
status: | Fix Committed → Fix Released |
Fix committed into lp:ubuntu-calculator-app at revision None, scheduled for release in ubuntu- calculator- app, milestone coreapps- 2014-week- 4