// These may not be all they keyCodes depending on region or whatever sS hjs_registerAltGrG(S code) { ret hjs_dollarVars([[ window.addEventListener('keypress', function(e) { if (e.getModifierState("AltGraph") && (e.keyCode == 331 || e.keyCode == 7749)) { e.preventDefault(); $code } }); ]], code := JS(code)); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032359 |
Snippet name: | hjs_registerAltGrG - register AltGr/Option+G hotkey |
Eternal ID of this version: | #1032359/11 |
Text MD5: | 4753993c332746eee45232011fab111e |
Author: | stefan |
Category: | javax / html |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-04 15:05:14 |
Source code size: | 370 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 158 / 177 |
Version history: | 10 change(s) |
Referenced in: | [show references] |