# What is REALSetAccelerator supposed to do?

**URL:** <https://forum.xojo.com/t/what-is-realsetaccelerator-supposed-to-do/75765>\
**Category:** SDKs\
**Created:** [May 15, 2023, 8:36pm UTC](https://forum.xojo.com/t/what-is-realsetaccelerator-supposed-to-do/75765 "2023-05-15T20:36:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Björn\_Eiríksson](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/da6949/32.png) [@Björn\_Eiríksson](https://forum.xojo.com/u/Bj%C3%B6rn_Eir%C3%ADksson)\
**Post date:** [May 15, 2023, 8:36pm UTC](https://forum.xojo.com/t/what-is-realsetaccelerator-supposed-to-do/75765/1 "2023-05-15T20:36:16Z")

</div>

**What is REALSetAccelerator supposed to do ?**

For example if I register it like follows like the documentation says (having & before the letter).

```auto
REALstring key = REALBuildStringWithEncoding("&d", 2, kREALTextEncodingUTF8);
REALSetAccelerator(instance, key);
REALUnlockString(key);

```

**Then where do I get the event when Alt-d is pressed ?**

I somehow thought that it would maybe come into this one here on the control:  
\*void (_actionEventFunction)(REALcontrolInstance, uint32\_t reserved);_

But the Acceleratoris doing nothing at all for me.

Thanks

Björn

(I am testing this on Windows)
