Keyboard shortcut for laytheme admin
General Discussion
4
Posts
2
Posters
588
Views
1
Watching
-
Hi guys,
does anybody know a good keyboard shortcut plugin for Wordpress?
I want to be able to access the Wordpress backend by pressing SHIFT + A while on my website.
cheers
-
Hi @TKN
you can write in jQuery that it will open a link when you hit those keys.Should not be that difficult.
Best!
Marius
-
In case anybody needs this. Here is a script that let’s you get to your laytheme admin by pressing SHIFT + A in your frontend.
Next feature I want to add: Editing the current page you are on by pressing SHIFT + E
(function( $ ) { var $doc = $( document ); $doc.ready( function(){ $doc.on( 'keydown', function( e ){ if ( ! $( e.target ).is( ':input' ) ) { if ( 65 == e.which && e.shiftKey ) // 65 = Number of "a" character in the Javascript Char Codes window.location = "http://www.yourwebsiteurl.com/wp-admin"; { } } }); }); })( jQuery ); -
HI @TKN
really sweet!Please keep in mind, that this gets overwritten, as soon as an update gets installed.
Also a good input for the future!
Best!
Marius
Online Users
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com