mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
nav: change defunct keyboard shortcuts #344
This commit is contained in:
parent
e63c3c1f7a
commit
bd70949313
2 changed files with 4 additions and 4 deletions
|
@ -70,7 +70,7 @@
|
||||||
{{- if $File }}
|
{{- if $File }}
|
||||||
{{- with $File.Path }}
|
{{- with $File.Path }}
|
||||||
<div id="top-github-link">
|
<div id="top-github-link">
|
||||||
<a class="github-link" title='{{ T "Edit-this-page" }} (CTRL+ALT+e)' href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
|
<a class="github-link" title='{{ T "Edit-this-page" }} (CTRL+ALT+w)' href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
|
||||||
<i class="fas fa-pen fa-fw"></i>
|
<i class="fas fa-pen fa-fw"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -83,7 +83,7 @@
|
||||||
{{- $toc := (and $hastoc (not $currentDisableToc)) }}
|
{{- $toc := (and $hastoc (not $currentDisableToc)) }}
|
||||||
<div id="breadcrumbs">
|
<div id="breadcrumbs">
|
||||||
<span id="sidebar-toggle-span">
|
<span id="sidebar-toggle-span">
|
||||||
<a href="#" id="sidebar-toggle" title='{{ T "Navigation-toggle" }} (CTRL+ALT+m)'><i class="fas fa-bars fa-fw"></i></a>
|
<a href="#" id="sidebar-toggle" title='{{ T "Navigation-toggle" }} (CTRL+ALT+n)'><i class="fas fa-bars fa-fw"></i></a>
|
||||||
</span>
|
</span>
|
||||||
{{- if $toc }}
|
{{- if $toc }}
|
||||||
<span id="toc-menu" title='{{ T "Toc-toggle" }} (CTRL+ALT+t)'><i class="fas fa-list-alt fa-fw"></i></span>
|
<span id="toc-menu" title='{{ T "Toc-toggle" }} (CTRL+ALT+t)'><i class="fas fa-list-alt fa-fw"></i></span>
|
||||||
|
|
|
@ -526,7 +526,7 @@ function tocEscapeHandler( event ){
|
||||||
}
|
}
|
||||||
|
|
||||||
function sidebarShortcutHandler( event ){
|
function sidebarShortcutHandler( event ){
|
||||||
if( event.altKey && event.ctrlKey && event.which == 77 /* m */ ){
|
if( event.altKey && event.ctrlKey && event.which == 78 /* n */ ){
|
||||||
showNav();
|
showNav();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -538,7 +538,7 @@ function tocShortcutHandler( event ){
|
||||||
}
|
}
|
||||||
|
|
||||||
function editShortcutHandler( event ){
|
function editShortcutHandler( event ){
|
||||||
if( event.altKey && event.ctrlKey && event.which == 69 /* e */ ){
|
if( event.altKey && event.ctrlKey && event.which == 87 /* w */ ){
|
||||||
showEdit();
|
showEdit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue