Skip to content

Commit b2523f4

Browse files
author
Mike Taylor
committed
Issue #449 - Add a visual hint for the 'g' => GitHub shortcut.
1 parent 8d64469 commit b2523f4

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
@@ -442,7 +442,8 @@ issueList.MainView = Backbone.View.extend({
442442
el: $('.js-issue-page'),
443443
events: {},
444444
keyboardEvents: {
445-
'g': 'githubWarp'
445+
'g': 'githubWarp',
446+
'G': 'githubWarp'
446447
},
447448
initialize: function() {
448449
this.initSubViews();

webcompat/templates/issue-list.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,11 @@ <h1 class="IssueList-title wc-Title--l">Issues</h1>
104104
</ul>
105105
</div>
106106
<% } %>
107+
<p class="wc-float-right wc-margin-bottom"><span class="wc-keyhint">G</span> takes you to the GitHub view of this page.</p>
107108
</script>
108109
</div>
109110
</div>
110-
</main>
111+
</main>
111112
</div>
112113

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

0 commit comments

Comments
 (0)