zoom extents back to Ctrl+E and use e.preventDefault
This commit is contained in:
parent
fc3fc00821
commit
1e0e77d1e5
2 changed files with 13 additions and 14 deletions
|
@ -44,11 +44,16 @@ Metamaps.Listeners = {
|
|||
}
|
||||
break
|
||||
case 69: // if e or E is pressed
|
||||
if (e.ctrlKey && Metamaps.Active.Topic) {
|
||||
self.centerAndReveal(Metamaps.Selected.Nodes, {
|
||||
center: true,
|
||||
reveal: false
|
||||
})
|
||||
if (e.ctrlKey) {
|
||||
e.preventDefault()
|
||||
if (Metamaps.Active.Topic) {
|
||||
self.centerAndReveal(Metamaps.Selected.Nodes, {
|
||||
center: true,
|
||||
reveal: false
|
||||
})
|
||||
} else if (Metamaps.Active.Map) {
|
||||
Metamaps.JIT.zoomExtents(null, Metamaps.Visualize.mGraph.canvas)
|
||||
}
|
||||
}
|
||||
break
|
||||
case 72: // if h or H is pressed
|
||||
|
@ -65,16 +70,9 @@ Metamaps.Listeners = {
|
|||
Metamaps.Control.removeSelectedEdges()
|
||||
}
|
||||
break
|
||||
case 79: // if o or O is pressed
|
||||
if (e.ctrlKey) {
|
||||
e.preventDefault()
|
||||
if (Metamaps.Active.Map) {
|
||||
Metamaps.JIT.zoomExtents(null, Metamaps.Visualize.mGraph.canvas)
|
||||
}
|
||||
}
|
||||
break
|
||||
case 82: // if r or R is pressed
|
||||
if (e.ctrlKey && Metamaps.Active.Topic) {
|
||||
e.preventDefault()
|
||||
self.centerAndReveal(Metamaps.Selected.Nodes, {
|
||||
center: false,
|
||||
reveal: true
|
||||
|
@ -83,6 +81,7 @@ Metamaps.Listeners = {
|
|||
break
|
||||
case 84: // if t or T is pressed
|
||||
if (e.ctrlKey && Metamaps.Active.Topic) {
|
||||
e.preventDefault()
|
||||
self.centerAndReveal(Metamaps.Selected.Nodes, {
|
||||
center: true,
|
||||
reveal: true
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
<div id="csNavigation">
|
||||
<div class="csItem"><span class="csTitle">Move around Canvas:</span> Click and drag</div>
|
||||
<div class="csItem"><span class="csTitle">Zoom in/out:</span> Scroll OR click on <div id="zoomIn"> </div> & <div id="zoomOut"> </div></div>
|
||||
<div class="csItem"><span class="csTitle">Zoom to see all:</span> Click <div id="centerMap"></div> OR Ctrl + O</div>
|
||||
<div class="csItem"><span class="csTitle">Zoom to see all:</span> Click <div id="centerMap"></div> OR Ctrl + E</div>
|
||||
<div class="csItem"><br><a href="http://metamapscc.uservoice.com/knowledgebase/articles/425784-viewing-existing-maps" target= "_blank">Learn More</a></div>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue