# Set a menu Shortcut yo EditClear

**URL:** <https://forum.xojo.com/t/set-a-menu-shortcut-yo-editclear/84832>\
**Category:** Windows\
**Created:** [April 1, 2025, 2:31pm UTC](https://forum.xojo.com/t/set-a-menu-shortcut-yo-editclear/84832 "2025-04-01T14:31:24Z")\
**Posts on this page:** 1\
**Page:** 1

<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:** [April 1, 2025, 2:31pm UTC](https://forum.xojo.com/t/set-a-menu-shortcut-yo-editclear/84832/1 "2025-04-01T14:31:24Z")

</div>

I wanded a Shortcut to EditClear on MacOS, then remember that I need it macOS âbdkWindwos.

This is what I finally get:

Sub Opening() Handles Opening

```auto
  #If TargetWindows
    EditClear.Shortcut = "Ctrl+Delete"
  #ElseIf TargetMacOS
    EditClear.Shortcut = "Cmd-Backspace"
  #EndIf
End Sub

```

On the Windows Laptop (Toshiba), the **`suppr`** key worked fine with Ctrl+Delete.  
I wa not able to get the `Delete` Key (another key \<\> from `suppr` working.

What do you use to get the WIndows Delete keynerasing the selection ?

Tested with WIndows 10 (I think) / Xojo 2025r1.
