fix john coments

Bussonnier Matthias 12 years ago committed by Matthias Bussonnier
parent f43d8585d1
commit 5be62ba538

@ -11,14 +11,16 @@ define([
"use strict";
var MainToolBar = function (selector, options) {
// Constructor
//
// Parameters:
// selector: string
// options: dictionary
// Dictionary of keyword arguments.
// events: $(Events) instance
// notebook: Notebook instance
/**
* Constructor
*
* Parameters:
* selector: string
* options: dictionary
* Dictionary of keyword arguments.
* events: $(Events) instance
* notebook: Notebook instance
**/
toolbar.ToolBar.apply(this, [selector, undefined ,options] );
this.events = options.events;
this.notebook = options.notebook;

@ -121,10 +121,7 @@ define([
}
function humanize_sequence(sequence){
var joinchar = '-';
if (platform === 'MacOS'){
joinchar = ' ';
}
var joinchar = ',';
var hum = _.map(sequence.replace(/meta/g, 'cmd').split(','), humanize_shortcut).join(joinchar);
return hum;
}

Loading…
Cancel
Save