Table of contents

     

    구글 블로거에서 단축키를 활용할 수 있다.

     

    구글 블로거 설정 -> 테마 -> HTML 편집으로 이동한 후,

     

    <head> 다음에 아래의 코드를 추가해준다.

     

     

    이 때, 중요한 부분은 자신의 블로그 설정 URL로 잘 수정하고

    원하는 단축키대로 지정하면 된다.

     

     

    아래의 예시는 단축키 a와 A를 활용한 것이고

    이다.

    이 부분을 원하는대로 수정하면 된다.

     

    <script type='text/javascript'>
      document.addEventListener(&quot;keydown&quot;, function(event) {
        if (event.target.tagName !== &quot;INPUT&quot;) {
          if (event.target.tagName !== &quot;TEXTAREA&quot;) {
            if (event.key === &quot;a&quot;){window.location.href = &quot;https://www.blogger.com/blog/posts/6209046386266093236&quot;;}
            elseif (event.key === &quot;A&quot;){window.location.href = &quot;https://www.blogger.com/blog/posts/6209046386266093236&quot;;}
          }
        }
      });
      </script>