Transpiled version (3279L) is out of date.
1 | sS hjs_redirectRandomKeystrokesToAutofocusField() { |
2 | ret hjs([[ |
3 | $(document).on('keydown', function(e) { |
4 | var nodeName = e.target.nodeName; |
5 | if ( 'INPUT' == nodeName || 'TEXTAREA' == nodeName ) return; |
6 | var key = event.which; |
7 | if (key == 33 || key == 34) return; // pg up/dn |
8 | $('[autofocus]').val('').trigger('focus'); |
9 | }); |
10 | ]]); |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032141 |
Snippet name: | hjs_redirectRandomKeystrokesToAutofocusField |
Eternal ID of this version: | #1032141/6 |
Text MD5: | 84f864f91da93712c2ef3aa2e97167db |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-14 09:31:29 |
Source code size: | 374 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 190 / 245 |
Version history: | 5 change(s) |
Referenced in: | [show references] |