Skip to content
Snippets Groups Projects
Commit 9e07c6aa authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

hints

parent bbc910d3
No related branches found
No related tags found
No related merge requests found
......@@ -10,8 +10,8 @@ LatticeMenuView = Backbone.View.extend({
events: {
"click #latticeMenuClearCells": "_clearCells",
"change #latticeScale": "_changeScale",
"click .cellType": "_changeCellType",
"click .connectionType": "_changeConnectionType",
// "click .cellType": "_changeCellType",
// "click .connectionType": "_changeConnectionType",
"slide #scaleSlider": "_sliderDidSlide",
"slideStop #scaleSlider": "_changeScaleSlider"
},
......@@ -137,6 +137,7 @@ LatticeMenuView = Backbone.View.extend({
Num Cells:&nbsp;&nbsp;<%= numCells %><br/>\
<br/>\
<a href="#" id="latticeMenuClearCells" class=" btn btn-block btn-lg btn-default">Clear All Cells</a><br/>\
hint: click to create cells, shift+drag to create a lot of cells, d+click to delete cells\
')
// <label class="checkbox" for="invertGeo">\
......
......@@ -142,12 +142,14 @@ AppState = Backbone.Model.extend({
var state = e.data.state;
var currentTab = this.get("currentTab");
console.log(e.keyCode);
switch(e.keyCode){
case 16://shift
e.preventDefault();
this.set("shift", state);
break;
case 32://space bar
case 68://d delete mode
e.preventDefault();
if (this.get("cellMode") == "cell") this.set("deleteMode", state);//only for cell mode
else this.set("deleteMode", false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment