Group Admins

  • Avatar Image

deanjrobinson.com

Public Group active 9 months, 3 weeks ago

Got a question about how I’m doing something in particular on my blog, or what plugin I’m using to do X? Then this is the place to find out.

Changing Fluency Admin Hot Keys…? (5 posts)

← Group Forum   Group Forum Directory
  • Avatar Image Thomas said 1 year, 7 months ago:

    Thanks for this really nice plugin!

    Is it possible to change the hot keys? I already had a quick look into the .js and php- files but haven’t found what I was looking for so far..

    Cheers
    Thomas

  • Avatar Image Dean Robinson said 1 year, 7 months ago:

    Have another look in the fluency.js file, at around line 265 you should see where the hot keys are specified for each of the top level menus. You probably won’t be able to change the submenu hot keys (well, not easily) as they are built ‘on the fly’ by the plugin.

  • Avatar Image Thomas said 1 year, 7 months ago:

    Hello Dean,

    Thanks for the quick reply!

    I already changed the values from line 230 til 276 but oddly the Fluency menu doesn’t adopt them in the live environment of my website… For example: I used “G” for Plugins but Pages are called (for Pages I used S) – Any idea why?

    fluencyKeys = {

    init:function() {

    var cc = new Array()
    cc[0] = $(‘li#menu-dashboard’).children(‘div.wp-menu-toggle’).text(‘H’).siblings(‘div.wp-submenu’).children(‘ul’).children(‘li’); // h
    cc[1] = $(‘li#menu-posts’).children(‘div.wp-menu-toggle’).text(‘A’).siblings(‘div.wp-submenu’).children(‘ul’).children(‘li’); // a
    cc[2] = $(‘li#menu-pages’).children(‘div.wp-menu-toggle’).text(‘S’).siblings(‘div.wp-submenu’).children(‘ul’).children(‘li’); // s
    cc[3] = $(‘li#menu-media’).children(‘div.wp-menu-toggle’).text(‘M’).siblings(‘div.wp-submenu’).children(‘ul’).children(‘li’); // m
    cc[4] = $(‘li#menu-links’).children(‘div.wp-menu-toggle’).text(‘L’).siblings(‘div.wp-submenu’).children(‘ul’).children(‘li’); // l
    cc[5] = $(‘li#menu-comments’).children(‘div.wp-menu-toggle’).text(‘K’).siblings(‘div.wp-submenu’).children(‘ul’).children(‘li’); // K
    cc[6] = $(‘li#menu-appearance’).children(‘div.wp-menu-toggle’).text(‘D’).siblings(‘div.wp-submenu’).children(‘ul’).children(‘li’); // d
    cc[7] = $(‘li#menu-plugins’).children(‘div.wp-menu-toggle’).text(‘G’).siblings(‘div.wp-submenu’).children(‘ul’).children(‘li’); // g
    cc[8] = $(‘li#menu-users’).children(‘div.wp-menu-toggle’).text(‘U’).siblings(‘div.wp-submenu’).children(‘ul’).children(‘li’); // u
    cc[9] = $(‘li#menu-tools’).children(‘div.wp-menu-toggle’).text(‘W’).siblings(‘div.wp-submenu’).children(‘ul’).children(‘li’); // w
    cc[10] = $(‘li#menu-settings’).children(‘div.wp-menu-toggle’).text(‘E’).siblings(‘div.wp-submenu’).children(‘ul’).children(‘li’); // e

    var keyArray = new Array(’1′,’2′,’3′,’4′,’5′,’6′,’7′,’8′,’9′,’B',’E',’F',’H',’I',’J',’K',’O',’Q',’R',’V',’W',’X',’Y',’Z');

    for(yy=0;yy<cc.length;yy++){
    var xx = 0;
    $(cc[yy]).each(function(){
    if(keyArray[xx]){
    $(this).append("“+keyArray[xx]+”“);
    }
    xx = xx+1;
    });
    }

    var ik = “”;
    var i = “”;
    var gk = ”;

    $(document).keydown(function(event) {

    if(event.shiftKey || event.metaKey || event.ctrlKey || event.altKey) { return true; }

    var el = event.target.tagName;
    var ek = event.which;
    switch(ek){
    case 68: i = $(‘li#menu-dashboard’); ik = “h”; break; // h
    case 80: i = $(‘li#menu-posts’); ik = “a”; break; // a
    case 71: i = $(‘li#menu-pages’); ik = “s”; break; // s
    case 77: i = $(‘li#menu-media’); ik = “m”; break; // m
    case 76: i = $(‘li#menu-links’); ik = “l”; break; // l
    case 67: i = $(‘li#menu-comments’); ik = “k”; break; // k
    case 65: i = $(‘li#menu-appearance’); ik = “d”; break; // d
    case 78: i = $(‘li#menu-plugins’); ik = “g”; break; // g
    case 85: i = $(‘li#menu-users’); ik = “u”; break; // u
    case 84: i = $(‘li#menu-tools’); ik = “w”; break; // w
    case 83: i = $(‘li#menu-settings’); ik = “e”; break; // e
    }

    Regards
    Thomas

  • Avatar Image Dean Robinson said 1 year, 7 months ago:

    Hi Thomas,

    Just had a closer look, you’ll also need to update the numbers in each of the ‘case’ statements, specific numbers correspond to specific keys (see here: http://djr.co/u/n )

    cheers,
    Dean

  • Avatar Image Thomas said 1 year, 7 months ago:

    Thanks, I really appreciate the help!

    Thomas