Libraryless. Click here for Pure Java version (9995L/71K).
static AutoCloseable dm_onCtrlC(Runnable r) { DynModule m = dm_current_mandatory(); ret dm_vmBus_onMessage keyDown_raw(voidfunc(int keyCode, int modifiers) { if (keyCode == 99 && modifiers == 2) { switch to m.q(); callF(r); } }); }
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: | 220 / 330 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |