#9944: DeskCalc : separating keypad labels from button codes -----------------------------------+--------------------------- Reporter: SoulHunter | Owner: stippi Type: enhancement | Status: new Priority: low | Milestone: R1 Component: Applications/DeskCalc | Version: R1/alpha4.1 Keywords: | Blocked By: Blocking: | Has a Patch: 0 Platform: All | -----------------------------------+--------------------------- 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. Regards. -- Ticket URL: <http://dev.haiku-os.org/ticket/9944> Haiku <http://dev.haiku-os.org> Haiku - the operating system.