Add edit hotkey. #496

This commit is contained in:
bootstraponline
2012-08-30 21:07:57 -06:00
parent ed49358c50
commit 97f15f0b18
@@ -1,3 +1,10 @@
<script>
Mousetrap.bind(['e'], function( e ) {
e.preventDefault();
window.location = "/edit" + window.location.pathname;
return false;
});
</script>
<div id="wiki-wrapper" class="page">
<div id="head">
<h1>{{title}}</h1>