DeskCalc : separating keypad labels from button codes
|Reported by:||SoulHunter||Owned by:||stippi|
Here is a little enhancement to the DeskCalc app :
It originally couldnt use alternative labels (math symbols -except pi letter-) for the keypad because every label is used "as is" and passed directly to the math parser.
When I discussed with jscipione, and after some code browsing we suggested using another a new field to store the key "function". The thing is there is already a field called "code" and used to store the label except for the key "=" which is replaced with "\n", so I assumed that the person who made that wanted some separation but did it for one key. This naturally got me into using the "code" field and treat the return key like any another one.
The details about how it works : in the keypad description string, a separator char (I chose the '|') is used between the "code" and the "actual label", if there is no separator given, the same code is assumed to be the label.