How to create hotkey in my app without using menu bar

hi everyone. i just want to implement four hotkeys in my window so i could fire a method with each hotkey.

lets say i want the following hotkeys:
Ctrl + A —> method “fireA”
Ctrl + B —> method “fireB”
Ctrl + C —> method “fireC”
Ctrl + D —> method “fireD”

i don’t want to show menubar in my window and i don’t want to put the event in every control of the window using keydown. maybe i could use timer but i think is not a good idea.

what is the correct way to do this in xojo apps??
i read a lot but i can’t get the answer, thanks!

[quote=142893:@nicolscanessa]hi everyone. i just want to implement four hotkeys in my window so i could fire a method with each hotkey.

lets say i want the following hotkeys:
Ctrl + A —> method “fireA”
Ctrl + B —> method “fireB”
Ctrl + C —> method “fireC”
Ctrl + D —> method “fireD”

i don’t want to show menubar in my window and i don’t want to put the event in every control of the window using keydown. maybe i could use timer but i think is not a good idea.

what is the correct way to do this in xojo apps??
i read a lot but i can’t get the answer, thanks![/quote]

Use a 100 ms multiple timer and monitor Keyboard http://documentation.xojo.com/index.php/Keyboard

This will give you access to the keyboard without need to put anything in any control or window event.

I thought that maybe there was another more elegant way to do that, but I think that’s the only way with xojo… Thanks @Michel Bujardet .