WordPress.org

Ready to get started?Download WordPress

Forums

SimpleModal Login
[resolved] How can i change the shortcut CTRL+ALT+L to another one? (3 posts)

  1. datser
    Member
    Posted 3 years ago #

    I want to change the shortcut ctrl+alt+l (fast access to registration form). What should i do?
    Thanks!

    http://wordpress.org/extend/plugins/simplemodal-login/

  2. Eric Martin
    Member
    Plugin Author

    Posted 3 years ago #

    You'd have to open the theme js file you are using (default.js, osx.js, or your custom one) and change the following:

    keydown: function (e) {
    	if (e.altKey && e.ctrlKey && e.keyCode === 76) {
    		$('.simplemodal-login').trigger('click.simplemodal-login');
    	}
    },

    You didn't say what you would want the shortcut to be, so you'd have to determine what would go in the if() condition.

  3. datser
    Member
    Posted 3 years ago #

    Thank you so much!
    Your post helped me!
    I changed the number of "keycode"! =)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic