git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
114fe2a
)
keys: load page hash as initial mode
author
Mischa POSLAWSKY
<perl@shiar.org>
Sun, 18 Jun 2017 07:53:27 +0000
(09:53 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Mon, 17 Jul 2017 15:13:43 +0000
(17:13 +0200)
Support #modeX links to preselect custom mode.
keys.js
patch
|
blob
|
history
diff --git
a/keys.js
b/keys.js
index 5dc2e2d2979d8027800055af47aa093c2d382fcc..dba04a1426b05ee980b7f08262501064a5d1beac 100644
(file)
--- a/
keys.js
+++ b/
keys.js
@@
-17,6
+17,10
@@
function setmode(classname) {
}
}
+if (location.hash) {
+ setmode(location.hash.slice(1));
+}
+
var keyfocus = undefined;
document.onkeypress = function(e) {
var keylabels = document.getElementById('rows').getElementsByTagName('B');