| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Jump to Post Keyboard Shortcuts | |
|---|---|
| Tweet Topic Started: Aug 23 2012, 05:59 PM (1,040 Views) | |
| Makaze | Aug 23 2012, 05:59 PM Post #1 |
|
Discordian
![]() ![]() ![]()
|
Tested in Google Chrome and Firefox. Code Name: Jump to Post Keyboard Shortcuts What the code does: Dynamically scrolls to an adjutant post when you press certain keys. Preview How to use the code: Press Ctrl+j to go up one post and Ctrl+k to go down one. How to install the code: Put the following code under Admin CP » Themes » Board Template » Javascripts:
Extra notes: Any keycodes can be used. Look here for a map of them. Edited by Makaze, Aug 24 2012, 11:58 AM.
|
![]() |
|
| Cory | Aug 24 2012, 07:20 AM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Interesting code. I don't think you can stop the ding in Google Chrome at the moment: http://code.google.com/p/chromium/issues/detail?id=105500 It's produced by the operating system any who, I believe. |
![]() |
|
| Viral | Aug 24 2012, 09:51 AM Post #3 |
![]()
Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Interesting.
|
![]() |
|
| DaPizzaMan | Aug 24 2012, 10:18 AM Post #4 |
![]()
#TeamSupport
![]()
|
Nice code, it's pretty neat. (y) |
![]() |
|
| Makaze | Aug 24 2012, 11:16 AM Post #5 |
|
Discordian
![]() ![]() ![]()
|
I fixed it by switching the modifier to Ctrl. It shouldn't have the ding now. |
![]() |
|
| Quozzo | Aug 24 2012, 12:45 PM Post #6 |
|
By the blood of Sanguinius!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Scrolling up doesn't work in Opera because Ctrl + J opens the downloads page and i was going to suggest using two keys on the left like Q and E as J is a bit of stretch to hit with my left hand on a G19, not to mention pressing the Ctrl key too. But about the Page Up and Page Down buttons, keyCode 33 & 34 respectively? |
![]() |
|
| Makaze | Aug 24 2012, 01:16 PM Post #7 |
|
Discordian
![]() ![]() ![]()
|
I already set it to prevent the default actions on pages with posts. The same shortcut exists in Chrome. Does `.preventDefault()` not work in Opera? I considered that. Just swap them out to get it working that way. Using Pg Up and Pg Dn
Edited by Makaze, Aug 24 2012, 01:23 PM.
|
![]() |
|
| Quozzo | Aug 24 2012, 02:36 PM Post #8 |
|
By the blood of Sanguinius!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I don't think preventDefault works because the shortcut is not from the document but from Opera itself, and if a website could override those commands it could become a security issue. BTW thanks for the edited code. Edited by Quozzo, Aug 24 2012, 02:37 PM.
|
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · ZetaBoards Codes & Modifications · Next Topic » |
| Track Topic · E-mail Topic |
2:54 PM Jul 11
|



![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)




Interesting.


2:54 PM Jul 11