Not logged in. · Lost password · Register
Forum: General Help and Support Plugins RSS
Looking for a working keyboard shortcut plugin
Avatar
sleeping #1
Member for a month · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: Looking for a working keyboard shortcut plugin
Hello there.

I am looking for a plugin like shortcutkey that is actually working.

I want to be able to press 'e' to edit a page.

Much appreciated if you know one.
Avatar
Aleksandr #2
Member since Mar 2010 · 587 posts · Location: Volgograd, Russia
Group memberships: Members
Show profile · Link to this post
The shortcutkey Plugin is compatible with "Greebo" for me. (Tested on Chromium.)
ru: Пожалуйста, избегайте избыточного цитирования.
en: Don’t use an overquoting, please.
Avatar
sleeping #3
Member for a month · 2 posts
Group memberships: Members
Show profile · Link to this post
Ah, unfortunetely it doesn't work with Firefox.

Just brings me to the homepage.
Avatar
Aleksandr #4
Member since Mar 2010 · 587 posts · Location: Volgograd, Russia
Group memberships: Members
Show profile · Link to this post
Works fine for me with Firefox 73.0.1 on antiX (Debian Linux).
ru: Пожалуйста, избегайте избыточного цитирования.
en: Don’t use an overquoting, please.
Avatar
turnermm (Moderator) #5
Member since Oct 2009 · 4803 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
In reply to post #3
Not as functional as what you get with the plugin, but if  your primary need is to quickly open edit, and your hand is always on your mouse, you can do it with a double-click in any browser by entering the following code into  conf/userscript.js:

jQuery(document).ready(function() {
    $dokuWiki = jQuery('.dokuwiki');
    if (jQuery('.editbutton_section', $dokuWiki).length > 0) {
        // register double click event for all headings and section divs
        jQuery('[class^="sectionedit"], div[class^="level"]', $dokuWiki).dblclick(function(){
            // find the closest edit button form to the element double clicked (downwards) and submit the form
            var f =  jQuery(this).nextAll('.editbutton_section:eq(0)').children('form:eq(0)');
            f.submit();
        })
    }  
 });
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-04-02, 22:05:21 (UTC +02:00)