Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

17
LINES

< > BotCompany Repo | #1027396 // Grab Keyboard

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (8270L/42K).

1  
!7
2  
3  
cmodule GrabKeyboardFocus > DynTextArea {
4  
  !include #1023104 // +Enabled
5  
6  
  switchable double interval = 1;
7  
8  
  start {
9  
    dm_reloadOnFieldChange interval();
10  
    dm_doEvery(interval, r {
11  
      if (!enabled || dm_osBootingOrShuttingDown()) ret;
12  
      dm_activateOSAndModule();
13  
      grabFocus(textArea);
14  
      moveCaretToEnd(textArea);
15  
    });
16  
  }
17  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027396
Snippet name: Grab Keyboard
Eternal ID of this version: #1027396/6
Text MD5: 05c5fca9aab6858961b3f37d4277b332
Transpilation MD5: b7d313aa7de0f250f1a8aa1d54737a7e
Author: stefan
Category:
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-09 20:27:11
Source code size: 354 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 226 / 2741
Version history: 5 change(s)
Referenced in: [show references]