# Change electron mode button behaviour

**URL:** <https://community.particle.io/t/change-electron-mode-button-behaviour/28283>\
**Category:** Firmware\
**Created:** [January 2, 2017, 10:11pm UTC](https://community.particle.io/t/change-electron-mode-button-behaviour/28283 "2017-01-02T22:11:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![G65434\_2](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/g65434_2/32/6236_2.png) [@G65434\_2](https://community.particle.io/u/G65434_2)\
**Post date:** [January 2, 2017, 10:11pm UTC](https://community.particle.io/t/change-electron-mode-button-behaviour/28283/1 "2017-01-02T22:11:32Z")

</div>

Hello

Just wondering if there is any way to disable the default mode button behaviour in the electron firmware?  
I know we can access the button using system events, however ideally I’d like to disable the signal strength check that occurs given a quick press.

Thanks

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [January 3, 2017, 4:55pm UTC](https://community.particle.io/t/change-electron-mode-button-behaviour/28283/2 "2017-01-03T16:55:20Z")

</div>

What’s the use case?

My guess is that overriding the behavior through system events might be the way to go though i have yet to test it 😄

---

<div class="post-metadata">

**Author:** ![G65434\_2](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/g65434_2/32/6236_2.png) [@G65434\_2](https://community.particle.io/u/G65434_2)\
**Post date:** [January 5, 2017, 10:08am UTC](https://community.particle.io/t/change-electron-mode-button-behaviour/28283/3 "2017-01-05T10:08:44Z")

</div>

Hi @kennethlimcp

It’s really just for adding another function instead of the signal check. Signal strength will be visible elsewhere in my product so there is no requirement for it.

I will see how I go and post back if I figure it out.

---

<div class="post-metadata">

**Author:** ![HossBoss](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/hossboss/32/4259_2.png) [@HossBoss](https://community.particle.io/u/HossBoss)\
**Post date:** [March 19, 2017, 6:14pm UTC](https://community.particle.io/t/change-electron-mode-button-behaviour/28283/4 "2017-03-19T18:14:58Z")

</div>

Did you end up finding a solution to this? I’m trying to add a button handler for click and double click, but my handler is never called and the double click puts the device to sleep. Looking at the source for v0.6.0 it looks like the button behavior is hardcoded on Electron.

---

<div class="post-metadata">

**Author:** ![G65434\_2](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/g65434_2/32/6236_2.png) [@G65434\_2](https://community.particle.io/u/G65434_2)\
**Post date:** [March 19, 2017, 11:49pm UTC](https://community.particle.io/t/change-electron-mode-button-behaviour/28283/5 "2017-03-19T23:49:42Z")

</div>

I haven’t had the chance to look at this again sorry @HossBoss, will post back when I do.
