]> git.mxchange.org Git - friendica.git/commitdiff
Doc about j/k keyboard shortcuts
authorPierre Rudloff <contact@rudloff.pro>
Thu, 13 Apr 2017 15:20:05 +0000 (17:20 +0200)
committerPierre Rudloff <contact@rudloff.pro>
Thu, 13 Apr 2017 15:20:05 +0000 (17:20 +0200)
doc/KeyboardShortcuts.md [new file with mode: 0644]
js/main.js

diff --git a/doc/KeyboardShortcuts.md b/doc/KeyboardShortcuts.md
new file mode 100644 (file)
index 0000000..cf783b0
--- /dev/null
@@ -0,0 +1,10 @@
+Keyboard shortcuts in Friendica
+=======================
+
+* [Home](help)
+
+General
+-------
+
+* j: Scroll to next thread
+* k: Scroll to previous thread
index 98c219d78cabb8e4d06aa1090730c6d2ec146120..c85aab4a2786ec74446a00b3695c106f7f424d2f 100644 (file)
                        }
                });
 
+               // Scroll to the next/previous thread when pressing J and K
                $(document).keydown(function (event) {
                        var threads = $('.thread_level_1');
                        if ((event.keyCode === 74 || event.keyCode === 75) && !$(event.target).is('textarea, input')) {