Commit f4b29778 authored by joshua-gould's avatar joshua-gould

shortcut key on mac

parent 79af9129
......@@ -2,7 +2,7 @@ morpheus.NewHeatMapTool = function() {
};
morpheus.NewHeatMapTool.prototype = {
toString : function() {
return 'New Heat Map (Ctrl+X)';
return 'New Heat Map (' + morpheus.Util.COMMAND_KEY + '+X)';
},
// gui : function() {
// return [ {
......
......@@ -303,6 +303,8 @@ if (typeof navigator !== 'undefined') {
morpheus.Util.IS_MAC = navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i) ? true
: false;
}
morpheus.Util.COMMAND_KEY = morpheus.Util.IS_MAC ? '⌘' : 'Ctrl';
morpheus.Util.hammer = function(el, recognizers) {
var hammer = new Hammer(el, {
recognizers : []
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment