Commit 96448d1b7b48820a10bd0fff0ba95de56117e7e8

Authored by Dmitriy Zaporozhets
1 parent 5067e9dc

Fix shortcuts popup

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