Libraryless. Click here for Pure Java version (9995L/71K).
1 | static AutoCloseable dm_onCtrlC(Runnable r) { |
2 | DynModule m = dm_current_mandatory(); |
3 | ret dm_vmBus_onMessage keyDown_raw(voidfunc(int keyCode, int modifiers) { |
4 | if (keyCode == 99 && modifiers == 2) { |
5 | switch to m.q(); |
6 | callF(r); |
7 | } |
8 | }); |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025855 |
Snippet name: | dm_onCtrlC - react to Ctrl+C in any application (using key logger), runs in module queue |
Eternal ID of this version: | #1025855/1 |
Text MD5: | 942673ef8a18faac991417fea89dcf54 |
Transpilation MD5: | 65958431ca8890ebe7abe7a7c01cee5a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-27 14:03:21 |
Source code size: | 265 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 221 / 332 |
Referenced in: | [show references] |