1 | import org.fife.ui.rsyntaxtextarea.*; |
2 | |
3 | static Map<Int> rsyntaxTextArea_fixNumPad_map = litmap( |
4 | KeyEvent.VK_UP, KeyEvent.VK_KP_UP, |
5 | KeyEvent.VK_DOWN, KeyEvent.VK_KP_DOWN, |
6 | KeyEvent.VK_LEFT, KeyEvent.VK_KP_LEFT, |
7 | KeyEvent.VK_RIGHT, KeyEvent.VK_KP_RIGHT |
8 | ); |
9 | |
10 | sbool rsyntaxTextArea_fixNumPad_done; |
11 | |
12 | static void rsyntaxTextArea_fixNumPad() { |
13 | if (rsyntaxTextArea_fixNumPad_done) ret; |
14 | new RSyntaxTextAreaDefaultInputMap inputMap; |
15 | for (KeyStroke key : inputMap.keys()) { |
16 | Int code = rsyntaxTextArea_fixNumPad_map.get(key.getKeyCode()); |
17 | if (code != null) |
18 | inputMap.put(KeyStroke.getKeyStroke(code, key.getModifiers()), |
19 | inputMap.get(key)); |
20 | } |
21 | UIManager.put("RSyntaxTextAreaUI.inputMap", inputMap); |
22 | //set rsyntaxtextarea_done; |
23 | } |
Began life as a copy of #1013052
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: | #1013053 |
Snippet name: | rsyntaxTextArea_fixNumPad |
Eternal ID of this version: | #1013053/5 |
Text MD5: | 2c77a653538383c6d6ac31afdce8d8f4 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-02 09:43:33 |
Source code size: | 774 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 513 / 530 |
Version history: | 4 change(s) |
Referenced in: | [show references] |