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

11
LINES

< > BotCompany Repo | #1017557 // ctrlEnterKeyListener

JavaX fragment (include)

1  
static KeyListener ctrlEnterKeyListener(fO action) {
2  
  fO info = _threadInfo();
3  
  ret new KeyAdapter {
4  
    public void keyReleased(KeyEvent ke) {
5  
      if (ke.getKeyCode() == KeyEvent.VK_ENTER && ke.getModifiers() == KeyEvent.CTRL_MASK) {
6  
        _threadInheritInfo(info);
7  
        pcallF(action);
8  
      }
9  
    }
10  
  };
11  
}

Author comment

Began life as a copy of #1010435

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017557
Snippet name: ctrlEnterKeyListener
Eternal ID of this version: #1017557/2
Text MD5: fb0cc332a8c7a8f95d66219e78e1be2e
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-27 19:07:37
Source code size: 327 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 347 / 400
Version history: 1 change(s)
Referenced in: [show references]