Appdeveloper: use a short key?

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
stefan.erni
Valued Contributor
Posts: 1224
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 228 times
Been thanked: 244 times

Appdeveloper: use a short key?

Post by stefan.erni »

Hi Steve

Is it possible to have a shortcut key for an existing switch in Appdeveloper?
For example, “space” to start recording.
2026-02-16_15-01-59.PNG
2026-02-16_15-01-59.PNG (4.46 KiB) Viewed 1648 times

BenR
Matrix Staff
Posts: 2211
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 607 times
Been thanked: 803 times

Re: Appdeveloper: use a short key?

Post by BenR »

Hi Stefan,

For PC developer you can use Key Mappings available from the Edit menu.

You can assign a calculation to a keypress, for example I have this to toggle a variable on and off when the S key is pressed.
KeyMappings.jpg
KeyMappings.jpg (7.54 KiB) Viewed 1638 times
You can monitor for this variable changing by having a decision in your main loop checking if the variable is equal to the old value.

It works fine for the PC developer source and for the export.
KeyMappingsDemo.fcpcd
(9.85 KiB) Downloaded 76 times
If you want this for web developer then let us know and we can see what's possible.

stefan.erni
Valued Contributor
Posts: 1224
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 228 times
Been thanked: 244 times

Re: Appdeveloper: use a short key?

Post by stefan.erni »

Hi Ben

Perfect!

I add key mapping and use the switch with call macro if click (OnButtonClick). This works very well.
Only the switch doesn't have such a good 3D effect. :)

short key and switch works nice together.
2026-02-17_11-44-56.PNG
2026-02-17_11-44-56.PNG (35.01 KiB) Viewed 1578 times
switch and led:
2026-02-17_11-44-25.PNG
2026-02-17_11-44-25.PNG (43.04 KiB) Viewed 1578 times
KeyMappingsDemo3.fcpcd
(14.47 KiB) Downloaded 82 times

Post Reply