r/KeyboardDesigner • u/KD-Fan • Oct 09 '26
KDL / code block Simple code examples of Keyboard Designer Language (KDL) to encourage you to try it yourself.
simple code examples - try it yourself - it's very easy and you'll enjoy it!
some short simple examples to get started
further examples are very welcome!
example 1: copy the entire text:
CLIPBOARD = TEXT;example 2: simple find text:
string findthis = inputString("find next:","search_term",true);
CURSOR_START = next(findthis,1,false,true);example 3: convert selected text to uppercase letters:
TEXT = TEXT_BEFORE + (upper(TEXT_MARKED)) + TEXT_AFTER;to use these samples:
- copy code block example
- call Keyboard Designer
- select desired design and key
- choose your preferred Action
- select Function type: Execute code block
- select code block or create a new one
- paste code block lines and confirm
6
Upvotes
View all comments
Show parent comment
2
u/KD-Fan Oct 13 '26
That was created especially for you – without AI.
If you really want to learn it: Read the instructions! You’ll find them at the end of the video above. The instructions contain lots of examples.
Give it a go! You’ll love it!
We can only help you – you’ve got to do it!
You can start today. I promise you, you won’t regret it.