Commit 96448d1b7b48820a10bd0fff0ba95de56117e7e8
1 parent
5067e9dc
Exists in
master
and in
4 other branches
Fix shortcuts popup
Showing
2 changed files
with
5 additions
and
5 deletions
Show diff stats
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", -> | ... | ... |