# Performing a keystroke for the user

**URL:** <https://forum.inductiveautomation.com/t/performing-a-keystroke-for-the-user/61917>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [July 14, 2022, 7:34pm UTC](https://forum.inductiveautomation.com/t/performing-a-keystroke-for-the-user/61917 "2022-07-14T19:34:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_Szatkowski](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Justin\_Szatkowski](https://forum.inductiveautomation.com/u/Justin_Szatkowski)\
**Post date:** [July 14, 2022, 7:34pm UTC](https://forum.inductiveautomation.com/t/performing-a-keystroke-for-the-user/61917/1 "2022-07-14T19:34:39Z")

</div>

Hi,

I am trying to script a button that performs a keystroke for the user. For instance, when the user hits the button, I want to do a “ctrl+a” “ctrl+c” action to automatically copy all of the text on a view. Is there any way to do this?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [July 14, 2022, 9:42pm UTC](https://forum.inductiveautomation.com/t/performing-a-keystroke-for-the-user/61917/2 "2022-07-14T21:42:00Z")

</div>

I suspect that browser security will interfere with this.

---

<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:** [July 15, 2022, 9:50am UTC](https://forum.inductiveautomation.com/t/performing-a-keystroke-for-the-user/61917/3 "2022-07-15T09:50:24Z")

</div>

There is a javascript API for manipulating the clipboard in the browser, so there’s hope for a future ability to do what you are asking. But it isn’t exposed in Perspective anywhere. Presumably it would be extra methods on the text field and text area components. Something to post on the ideas site.

Actually generating keystrokes would probably never be supported by browsers.
