static L<NativeKeyAdapter> onGlobalKeyRelease_listeners = synchroList(); // f: voidfunc(NativeKeyEvent) static AutoCloseable onGlobalKeyRelease(fO f) { jnativehook_init(); final NativeKeyAdapter listener = new { @Override public void nativeKeyReleased(NativeKeyEvent e) { pcallF(f, e); } }; GlobalScreen.addNativeKeyListener(addAndReturn(onGlobalKeyRelease_listeners, listener)); ret autoCloseable { GlobalScreen.removeNativeKeyListener(listener); }; } static void cleanMeUp_onGlobalKeyRelease() { for (NativeKeyAdapter a : getAndClearList(onGlobalKeyRelease_listeners)) GlobalScreen.removeNativeKeyListener(a); }
Began life as a copy of #1010548
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010551 |
Snippet name: | onGlobalKeyRelease [JNativeHook] |
Eternal ID of this version: | #1010551/2 |
Text MD5: | 7d32699080a6e57753f8098c24654410 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-25 14:37:46 |
Source code size: | 667 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 382 / 410 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |