# Menu shortcut problem

**URL:** <https://forum.xojo.com/t/menu-shortcut-problem/83352>\
**Category:** Windows\
**Created:** [November 26, 2024, 10:22pm UTC](https://forum.xojo.com/t/menu-shortcut-problem/83352 "2024-11-26T22:22:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Tullin](https://forum.xojo.com/user_avatar/forum.xojo.com/jeff_tullin/32/693_2.png) [@Jeff\_Tullin](https://forum.xojo.com/u/Jeff_Tullin)\
**Post date:** [November 26, 2024, 10:22pm UTC](https://forum.xojo.com/t/menu-shortcut-problem/83352/1 "2024-11-26T22:22:27Z")

</div>

For REDO, I have the menu shortcut set up for Mac as CMD-SHIFT-Z  
But for Windows , people expect CTRL-Y

I cannot work how how to achieve that in the IDE

Anyone know how to make that happen in IDE or in code?

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [November 26, 2024, 10:24pm UTC](https://forum.xojo.com/t/menu-shortcut-problem/83352/2 "2024-11-26T22:24:26Z")

</div>

A constant with a platform specific value, take a look at `App.kEditClear` in the default desktop project.

---

<div class="post-metadata">

**Author:** ![Mark\_Sweeney](https://forum.xojo.com/user_avatar/forum.xojo.com/mark_sweeney/32/3332_2.png) [@Mark\_Sweeney](https://forum.xojo.com/u/Mark_Sweeney)\
**Post date:** [November 26, 2024, 11:38pm UTC](https://forum.xojo.com/t/menu-shortcut-problem/83352/3 "2024-11-26T23:38:21Z")

</div>

You can set it with code in the opening event:

```auto
#If TargetMacOS Then
  EditRedo.Shortcut = "cmd-shift-z"
#ElseIf TargetWindows
  EditRedo.Shortcut = "ctrl-y"
#EndIf

```

---

<div class="post-metadata">

**Author:** ![Jeff\_Tullin](https://forum.xojo.com/user_avatar/forum.xojo.com/jeff_tullin/32/693_2.png) [@Jeff\_Tullin](https://forum.xojo.com/u/Jeff_Tullin)\
**Post date:** [November 27, 2024, 8:31am UTC](https://forum.xojo.com/t/menu-shortcut-problem/83352/4 "2024-11-27T08:31:59Z")

</div>

Took some tracking down.  
Several things confused the issue.

First, I had another deeply buried menu that was already CTRL-Y. Changed.

But then, running Windows in a VM on my Mac, CMD-Z works as Undo, and I assumed CMD-Y should likewise work.  
Nope.  
Using actual CTRL got there in the end. Cheers guys

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [November 27, 2024, 10:19am UTC](https://forum.xojo.com/t/menu-shortcut-problem/83352/5 "2024-11-27T10:19:40Z")

</div>

Yes, sometimes it’s CCS (Crazy Cumulative Stuf)…

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [November 27, 2024, 12:08pm UTC](https://forum.xojo.com/t/menu-shortcut-problem/83352/6 "2024-11-27T12:08:42Z")

</div>

> [@Jeff\_Tullin](#):
>
> But then, running Windows in a VM on my Mac, CMD-Z works as Undo, and I assumed CMD-Y should likewise work.  
> Nope.

Your VM should have a mapping list for this stuff.

---

<div class="post-metadata">

**Author:** ![Jeff\_Tullin](https://forum.xojo.com/user_avatar/forum.xojo.com/jeff_tullin/32/693_2.png) [@Jeff\_Tullin](https://forum.xojo.com/u/Jeff_Tullin)\
**Post date:** [November 27, 2024, 1:24pm UTC](https://forum.xojo.com/t/menu-shortcut-problem/83352/7 "2024-11-27T13:24:09Z")

</div>

> [@Greg\_O](#):
>
> Your VM should have a mapping list for this stuff

Parallels. You’ld think so.  
Maybe it just maps the more widely used ones.

---

<div class="post-metadata">

**Author:** ![Greg\_O](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o/32/22785_2.png) [@Greg\_O](https://forum.xojo.com/u/Greg_O)\
**Post date:** [November 27, 2024, 3:13pm UTC](https://forum.xojo.com/t/menu-shortcut-problem/83352/8 "2024-11-27T15:13:53Z")

</div>

Parallels definitely. Look under the main prefs for parallels itself.
