Commit 96448d1b7b48820a10bd0fff0ba95de56117e7e8

Authored by Dmitriy Zaporozhets
1 parent 5067e9dc

Fix shortcuts popup

app/assets/javascripts/main.js.coffee
@@ -67,10 +67,6 @@ $ -> @@ -67,10 +67,6 @@ $ ->
67 $('.appear-data').fadeIn() 67 $('.appear-data').fadeIn()
68 e.preventDefault() 68 e.preventDefault()
69 69
70 - $('body').keydown (e) ->  
71 - if e.which is 191  
72 - new Shortcuts()  
73 -  
74 # Initialize chosen selects 70 # Initialize chosen selects
75 $('select.chosen').chosen() 71 $('select.chosen').chosen()
76 72
@@ -114,6 +110,10 @@ $ -> @@ -114,6 +110,10 @@ $ ->
114 when 115 110 when 115
115 $("#search").focus() 111 $("#search").focus()
116 e.preventDefault() 112 e.preventDefault()
  113 + when 63
  114 + new Shortcuts()
  115 + e.preventDefault()
  116 +
117 117
118 # Commit show suppressed diff 118 # Commit show suppressed diff
119 $(".supp_diff_link").bind "click", -> 119 $(".supp_diff_link").bind "click", ->
app/views/help/_shortcuts.html.haml
1 #modal-shortcuts.modal.hide 1 #modal-shortcuts.modal.hide
2 .modal-header 2 .modal-header
3 - %a.close{href: "#"} × 3 + %a.close{href: "#", "data-dismiss" => "modal"} ×
4 %h3 Keyboard Shortcuts 4 %h3 Keyboard Shortcuts
5 .modal-body 5 .modal-body
6 %h5 Global Shortcuts 6 %h5 Global Shortcuts