Jun 22, '05 10:58:00AM • Contributed by: zeichensprecher
On non-English keyboards, the dot "." on the numeric pad does not work as a decimal point if you use it with the Calculator Dashboard widget. This is quite annoying, so here is a one-line hack to fix the problem...
Go to /Library/Widgets, and make a backup of the Calculator widget -- just Option-drag it elsewhere on the disk to make a copy. Control-click on "Rechner," "Calculator," or whatever the localized name is, and choose Show Package Contents ("Paketinhalt zeigen"). In the new window that opens, open Calculator.js in your favorite text editor. Go to line 66, in function "translateKey(e)", switch(e.charCode). The current line should be:
case 46:
key = "decimal";
break;
Now just add case 44 as shown below:
case 44:
case 46:
key = "decimal";
break;
Now save, open Dashboard, remove the current Calculator, if it's open, add a new one and voila! You can now use the numeric keypad.
