# Prevent Default onKeyPress

**URL:** <https://forum.inductiveautomation.com/t/prevent-default-onkeypress/40965>\
**Category:** Ignition\
**Created:** [November 25, 2020, 7:49pm UTC](https://forum.inductiveautomation.com/t/prevent-default-onkeypress/40965 "2020-11-25T19:49:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [November 25, 2020, 7:49pm UTC](https://forum.inductiveautomation.com/t/prevent-default-onkeypress/40965/1 "2020-11-25T19:49:10Z")

</div>

Is there a way i can prevent default, but only on certain keys? Right now it looks like it is just a check box to prevent default on all onKeyPress events.

---

<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:** [November 25, 2020, 8:00pm UTC](https://forum.inductiveautomation.com/t/prevent-default-onkeypress/40965/2 "2020-11-25T20:00:21Z")

</div>

There is an open feature which _should_ be picked up for 8.1.3 which allows for configuring keys to ignore.
