Advertisement
Guest User

Untitled

a guest
Jan 12th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var which = e.which;
  2. var shiftKey = e.shiftKey;
  3. if (e.shiftKey === false && (e.which == 189 || e.which == 191)) {
  4.   which -= 144;
  5. }
  6. else if (e.shiftKey === true && e.which == 187) {
  7.   which -= 144;
  8.   shiftKey = false;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement