static AutoCloseable tempAddKeyEventDispatcher(final KeyEventDispatcher d) { final KeyboardFocusManager fm = KeyboardFocusManager.getCurrentKeyboardFocusManager(); fm.addKeyEventDispatcher(d); ret autoCloseable { fm.removeKeyEventDispatcher(d); }; }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020784 |
Snippet name: | tempAddKeyEventDispatcher |
Eternal ID of this version: | #1020784/2 |
Text MD5: | 0479467f5c6451e310c664f1e4ad7d78 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-02 17:01:37 |
Source code size: | 259 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 304 / 313 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |