Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Typing "a" assigns it to me

  • Loading branch information...
commit 266766c99d1d3a2ac6b85289798e6ca994705df3 1 parent ceaa5b9
Marcia Lee authored

Showing 1 changed file with 12 additions and 1 deletion. Show diff stats Hide diff stats

  1. +12 1 contentscript.js
13 contentscript.js
@@ -15,10 +15,21 @@ chrome.extension.sendRequest({}, function( response ) {});
15 15 var enabled = true;
16 16 jQuery( function() {
17 17 jQuery( document ).keypress( function( event ) {
18   - if ( enabled && event.which === 111 ) {
  18 + if ( !enabled ) {
  19 + return;
  20 + }
  21 +
  22 + // "o"
  23 + if ( event.which === 111 ) {
19 24 openProblemInNewTab();
20 25 }
  26 +
  27 + // "a"
  28 + if ( event.which === 97 ) {
  29 + jQuery("#issue_assignee_marcia").click();
  30 + }
21 31 });
  32 +
22 33 jQuery( "textarea, input" ).focus( function( event ) {
23 34 enabled = false;
24 35 }).blur( function( event ) {

0 comments on commit 266766c

Please sign in to comment.
Something went wrong with that request. Please try again.