Uses 911K of libraries. Click here for Pure Java version (9562L/50K).
1 | !7 |
2 | |
3 | cmodule TextArea > DynRecordingTextArea {
|
4 | switchable bool listen; |
5 | |
6 | start {
|
7 | dm_onTopInput_q(voidfunc(S s) {
|
8 | if (listen) sendInput(s) |
9 | }); |
10 | } |
11 | |
12 | visual withRightAlignedButtons(super, |
13 | dm_boolFieldImageSwitch listen(#1102902, #1101635, |
14 | onToolTip := "Listening to voice input (if a speech recognition is active)", |
15 | offToolTip := "Not listening to voice input")); |
16 | |
17 | void sendInput(S s) {
|
18 | if (empty(s)) ret; |
19 | setText(joinWithNewLine(text(), s)); |
20 | } |
21 | } |
Began life as a copy of #1016122
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: | #1028007 |
| Snippet name: | Text Area with dictation [always appends to end] |
| Eternal ID of this version: | #1028007/3 |
| Text MD5: | e6ab501eaae9aa685cceacde442894dc |
| Transpilation MD5: | 529eba356d74ce4c1a9061cff80811b7 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-05-01 19:49:46 |
| Source code size: | 519 bytes / 21 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 433 / 2312 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |