Skip to content

Commit bd70949

Browse files
committed
nav: change defunct keyboard shortcuts matcornic#344
1 parent e63c3c1 commit bd70949

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

layouts/partials/header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
{{- if $File }}
7171
{{- with $File.Path }}
7272
<div id="top-github-link">
73-
<a class="github-link" title='{{ T "Edit-this-page" }} (CTRL+ALT+e)' href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
73+
<a class="github-link" title='{{ T "Edit-this-page" }} (CTRL+ALT+w)' href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
7474
<i class="fas fa-pen fa-fw"></i>
7575
</a>
7676
</div>
@@ -83,7 +83,7 @@
8383
{{- $toc := (and $hastoc (not $currentDisableToc)) }}
8484
<div id="breadcrumbs">
8585
<span id="sidebar-toggle-span">
86-
<a href="#" id="sidebar-toggle" title='{{ T "Navigation-toggle" }} (CTRL+ALT+m)'><i class="fas fa-bars fa-fw"></i></a>
86+
<a href="#" id="sidebar-toggle" title='{{ T "Navigation-toggle" }} (CTRL+ALT+n)'><i class="fas fa-bars fa-fw"></i></a>
8787
</span>
8888
{{- if $toc }}
8989
<span id="toc-menu" title='{{ T "Toc-toggle" }} (CTRL+ALT+t)'><i class="fas fa-list-alt fa-fw"></i></span>

static/js/theme.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ function tocEscapeHandler( event ){
526526
}
527527

528528
function sidebarShortcutHandler( event ){
529-
if( event.altKey && event.ctrlKey && event.which == 77 /* m */ ){
529+
if( event.altKey && event.ctrlKey && event.which == 78 /* n */ ){
530530
showNav();
531531
}
532532
}
@@ -538,7 +538,7 @@ function tocShortcutHandler( event ){
538538
}
539539

540540
function editShortcutHandler( event ){
541-
if( event.altKey && event.ctrlKey && event.which == 69 /* e */ ){
541+
if( event.altKey && event.ctrlKey && event.which == 87 /* w */ ){
542542
showEdit();
543543
}
544544
}

0 commit comments

Comments
 (0)