# Perspective Table How to Handle Right Click Copy Event

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-how-to-handle-right-click-copy-event/47618>\
**Category:** Ignition\
**Created:** [June 9, 2021, 9:21pm UTC](https://forum.inductiveautomation.com/t/perspective-table-how-to-handle-right-click-copy-event/47618 "2021-06-09T21:21:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick.christensen1](https://avatars.discourse-cdn.com/v4/letter/n/bcef8e/32.png) [@nick.christensen1](https://forum.inductiveautomation.com/u/nick.christensen1)\
**Post date:** [June 9, 2021, 9:21pm UTC](https://forum.inductiveautomation.com/t/perspective-table-how-to-handle-right-click-copy-event/47618/1 "2021-06-09T21:21:01Z")

</div>

When you right click a table it brings up a context menu with the option to copy on it. How can I handle this event? I don’t see any information on the table documentation page. Or if you can’t, how can I disable this menu?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/c/0c340aaa396c5d8db788431d87df5f7379af0eca.png)

---

<div class="post-metadata">

**Author:** ![matthew.ayre](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matthew.ayre/32/19499_2.png) [@matthew.ayre](https://forum.inductiveautomation.com/u/matthew.ayre)\
**Post date:** [June 10, 2021, 12:59pm UTC](https://forum.inductiveautomation.com/t/perspective-table-how-to-handle-right-click-copy-event/47618/2 "2021-06-10T12:59:07Z")

</div>

Hi @nick.christensen1, there is the ‘Prevent Default’ option for component events. Not sure if this will apply though 🤔

[https://docs.inductiveautomation.com/display/DOC81/Component+Events+and+Actions](https://docs.inductiveautomation.com/display/DOC81/Component+Events+and+Actions)

---

<div class="post-metadata">

**Author:** ![nick.christensen1](https://avatars.discourse-cdn.com/v4/letter/n/bcef8e/32.png) [@nick.christensen1](https://forum.inductiveautomation.com/u/nick.christensen1)\
**Post date:** [June 10, 2021, 1:40pm UTC](https://forum.inductiveautomation.com/t/perspective-table-how-to-handle-right-click-copy-event/47618/3 "2021-06-10T13:40:38Z")

</div>

It sounds like that would be the solution, but I tried applying a script to the onContextMenu event with “Prevent Default” checked and it did not stop the context menu from appearing.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/2/72f938c16fdd7b823f29c346a1631fac207964d2.png)

---

<div class="post-metadata">

**Author:** ![matthew.ayre](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matthew.ayre/32/19499_2.png) [@matthew.ayre](https://forum.inductiveautomation.com/u/matthew.ayre)\
**Post date:** [June 10, 2021, 2:04pm UTC](https://forum.inductiveautomation.com/t/perspective-table-how-to-handle-right-click-copy-event/47618/4 "2021-06-10T14:04:08Z")

</div>

Yes I was worried that might be the outcome. Unfortunately, I have nothing further to add 😞 sorry.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [June 10, 2021, 2:45pm UTC](https://forum.inductiveautomation.com/t/perspective-table-how-to-handle-right-click-copy-event/47618/5 "2021-06-10T14:45:50Z")

</div>

i might have a hacky solution to make it invisible...

if you create a style class and paste this

> }.contextMenuCommon.ia\_contextMenu{display:none;}{

into for example the background image.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/7/67bd716b608d23d69feed9d5866b216e405b6217.png)

The copy popup will no longer be visible and clickable. It still triggers the event tho.

Also this will now work on all tables you have in the project, so if do want it somewhere else you will have to change it a bit to be more specific.

You can "inject" css in the styles. You can probably also change the styles somewhere else in the base files but this is easier for a quick fix.

There probably is a better way but idk it

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [June 10, 2021, 2:57pm UTC](https://forum.inductiveautomation.com/t/perspective-table-how-to-handle-right-click-copy-event/47618/6 "2021-06-10T14:57:53Z")

</div>

> [@victordcq](#):
>
> }.contextMenuCommon.ia\_contextMenu{display:none;}{

That's so sneaky. I love it.

---

<div class="post-metadata">

**Author:** ![nick.christensen1](https://avatars.discourse-cdn.com/v4/letter/n/bcef8e/32.png) [@nick.christensen1](https://forum.inductiveautomation.com/u/nick.christensen1)\
**Post date:** [June 10, 2021, 3:46pm UTC](https://forum.inductiveautomation.com/t/perspective-table-how-to-handle-right-click-copy-event/47618/7 "2021-06-10T15:46:40Z")

</div>

That did it. Like you said, certainly not the way I’d like to do it but it’s better than nothing.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 10, 2021, 9:41pm UTC](https://forum.inductiveautomation.com/t/perspective-table-how-to-handle-right-click-copy-event/47618/8 "2021-06-10T21:41:17Z")

</div>

Ingenius! 😄

---

<div class="post-metadata">

**Author:** ![Houssam\_Eddine\_Belfe](https://avatars.discourse-cdn.com/v4/letter/h/e95f7d/32.png) [@Houssam\_Eddine\_Belfe](https://forum.inductiveautomation.com/u/Houssam_Eddine_Belfe)\
**Post date:** [October 9, 2023, 3:00pm UTC](https://forum.inductiveautomation.com/t/perspective-table-how-to-handle-right-click-copy-event/47618/9 "2023-10-09T15:00:07Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/a/4a04f14ef961fc902d68252255f370aa3f9b50b3.png)

just like this simple and work

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 9, 2023, 3:04pm UTC](https://forum.inductiveautomation.com/t/perspective-table-how-to-handle-right-click-copy-event/47618/10 "2023-10-09T15:04:39Z")

</div>

> [@Houssam\_Eddine\_Belfe](#):
>
> just like this

A lot of functionality has been added to Perspective in the two years since the hacky workaround above was developed. (Check dates on your topics when posting.)
