diff --git a/app/assets/javascripts/src/Metamaps.Listeners.js b/app/assets/javascripts/src/Metamaps.Listeners.js index 0520c0a5..32f4c418 100644 --- a/app/assets/javascripts/src/Metamaps.Listeners.js +++ b/app/assets/javascripts/src/Metamaps.Listeners.js @@ -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 diff --git a/app/views/shared/_cheatsheet.html.erb b/app/views/shared/_cheatsheet.html.erb index 7541bd04..6468ccb6 100644 --- a/app/views/shared/_cheatsheet.html.erb +++ b/app/views/shared/_cheatsheet.html.erb @@ -103,7 +103,7 @@
Move around Canvas: Click and drag
Zoom in/out: Scroll OR click on
&
-
Zoom to see all: Click
OR Ctrl + O
+
Zoom to see all: Click
OR Ctrl + E

Learn More