|
@@ -164,8 +164,7 @@
|
|
|
window.BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder;
|
|
|
|
|
|
// Use Command instead of Ctrl on Mac
|
|
|
- var modifierKey = navigator.platform.toUpperCase().indexOf( 'MAC' ) >= 0 ?
|
|
|
- "metaKey" : "ctrlKey";
|
|
|
+ var modifierKey = navigator.platform.toUpperCase().indexOf( 'MAC' ) >= 0 ? "metaKey" : "ctrlKey";
|
|
|
|
|
|
Number.prototype.format = function (){
|
|
|
return this.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,");
|
|
@@ -315,11 +314,11 @@
|
|
|
|
|
|
case 90: // Register Ctrl-Z for Undo, Ctrl-Shift-Z for Redo
|
|
|
|
|
|
- if ( event[modifierKey] && event.shiftKey ) {
|
|
|
+ if ( event[ modifierKey ] && event.shiftKey ) {
|
|
|
|
|
|
editor.redo();
|
|
|
|
|
|
- } else if ( event[modifierKey] ) {
|
|
|
+ } else if ( event[ modifierKey ] ) {
|
|
|
|
|
|
editor.undo();
|
|
|
|