Keyboard shortcut for home

master
Nick Sergeant 2012-01-15 23:22:00 -05:00
parent fee48a2663
commit 9678c286ab
2 changed files with 6 additions and 0 deletions

View File

@ -1111,6 +1111,9 @@ jQuery(function($) {
}
window.scrollTo(0, document.body.scrollHeight);
});
$document.bind('keydown', 'h', function() {
window.location = '/';
});
$document.bind('keydown', 'j', function() {
if (!$selected) {
SniptList.$snipts.eq(0).trigger('select');

View File

@ -139,6 +139,9 @@
}
window.scrollTo(0, document.body.scrollHeight);
});
$document.bind('keydown', 'h', function() {
window.location = '/';
});
$document.bind('keydown', 'j', function() {
if (!$selected) {
SniptList.$snipts.eq(0).trigger('select');