Advertisement
congdantoancau

If input field is not focused

Apr 27th, 2018
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // [F] - Fullscreen button
  2.     if (e.which == 70) {
  3.         if (!$(e.target).is('input') || !$(e.target).is('.UFIAddCommentInput')) {
  4.             $('button[data-testid="fullscreen_control"]').trigger('click');
  5.         }
  6.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement