Skip to content

Commit d623f8e

Browse files
committed
Merge pull request #473 from /issues/449/2
Issue #449 - Add a visual hint for the 'g' => GitHub shortcut.
2 parents 3373987 + b2523f4 commit d623f8e

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

webcompat/static/css/development/layout/utilities.css

+9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
font-weight: 700;
55
}
66

7+
.wc-keyhint {
8+
background-color: var(--wc-variant-background-dark);
9+
border-radius: 5px;
10+
color: #fff;
11+
display: inline-block;
12+
padding: 0.2em 0.5em;
13+
vertical-align: middle;
14+
}
15+
716
/*---------- Utilities Position ----------*/
817

918
.wc-pos-absolute {

webcompat/static/js/lib/issue-list.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,8 @@ issueList.MainView = Backbone.View.extend({
425425
el: $('.js-issue-page'),
426426
events: {},
427427
keyboardEvents: {
428-
'g': 'githubWarp'
428+
'g': 'githubWarp',
429+
'G': 'githubWarp'
429430
},
430431
initialize: function() {
431432
this.initSubViews();

webcompat/templates/issue-list.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,11 @@
103103
</ul>
104104
</div>
105105
<% } %>
106+
<p class="wc-float-right wc-margin-bottom"><span class="wc-keyhint">G</span> takes you to the GitHub view of this page.</p>
106107
</script>
107108
</div>
108109
</div>
109-
</main>
110+
</main>
110111
</div>
111112

112113
<script type="text/template" id="dropdown-tmpl">

0 commit comments

Comments
 (0)