# Pasting Code/Event/whatever in the Navigation Pane

**URL:** <https://forum.xojo.com/t/pasting-code-event-whatever-in-the-navigation-pane/88066>\
**Category:** Code Sharing\
**Created:** [April 12, 2026, 4:32pm UTC](https://forum.xojo.com/t/pasting-code-event-whatever-in-the-navigation-pane/88066 "2026-04-12T16:32:36Z")\
**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 12, 2026, 4:32pm UTC](https://forum.xojo.com/t/pasting-code-event-whatever-in-the-navigation-pane/88066/1 "2026-04-12T16:32:36Z")

</div>

More Tip than Code Sharing.

I recall some times ago someone talking about Pasting a Function (with code) was not really working.

Today (minutes ago), I started to add code to a MenuItem, and realized my error: not the window into where I need that MenuItem to be active.

So, I Cut the MenuItem, and Pasted it in the correct location: the Paste was rejected silently.

So, I clicked in another part of that Window: same.

When I choosed _Layout_ as the _Paste_ target, it was accepted.

 ![image](https://forum.xojo.com/uploads/default/original/3X/c/7/c7e6ee0a106c6645a4dc8e866016209e049b0376.png)  
Note the green selection color.

THAT IS NOT THE BEST IDEA, because the first location to click is **Menu Handler** in that case (instead of _Layout_), but now we know what to do (provided we remember that).

I forget if I used Cmd-V or Right-Click → Paste (if that matters, who know ?).
