git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
keys: load page hash as initial mode
[sheet.git]
/
keys.js
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');