# Potential bug with shortcuts

**URL:** <https://discourse.nodered.org/t/potential-bug-with-shortcuts/41733>\
**Category:** General\
**Created:** [27 February 2021 23:10 UTC](https://discourse.nodered.org/t/potential-bug-with-shortcuts/41733 "2021-02-27T23:10:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![daxliniere](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/daxliniere/32/42187_2.png) [@daxliniere](https://discourse.nodered.org/u/daxliniere)\
**Post date:** [27 February 2021 23:10 UTC](https://discourse.nodered.org/t/potential-bug-with-shortcuts/41733/1 "2021-02-27T23:10:31Z")

</div>

Hey team,  
I tried to bind SHIFT+ and SHIFT- to Enable/Disable Selected Nodes, but only Disable seems to work.  
I tried binding Enable to other keys ( just + and ] ), but that didn't work either.

Can someone confirm this is working, please?

Also, it would be awesome to have an action for "Toggle Enable/Disable Selected Nodes". This way we could use a single key binding.

All the best!  
Dax.

(I am new to Node-RED, but have beta tested for software devs for over 13 years, mostly as UI/UX consultant.)

---

<div class="post-metadata">

**Author:** ![daxliniere](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/daxliniere/32/42187_2.png) [@daxliniere](https://discourse.nodered.org/u/daxliniere)\
**Post date:** [27 February 2021 23:16 UTC](https://discourse.nodered.org/t/potential-bug-with-shortcuts/41733/2 "2021-02-27T23:16:58Z")

</div>

I also just discovered that if a key is already bound to another action, there is no warning message displayed to tell the user. Ideally, there would be a modal which asks if you want to re-map the key or leave it bound to it's current action.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [28 February 2021 10:32 UTC](https://discourse.nodered.org/t/potential-bug-with-shortcuts/41733/3 "2021-02-28T10:32:35Z")

</div>

Hi @daxliniere

thanks for reporting. I can confirm that any shortcuts involving the `+` key weren't working - now fixed for the next release.

There's some more room for improvement - particular for non QWERTY layouts - but this will do for today.

I'll take a look at your other pieces of feedback - helping avoid duplicating a shortcut and a toggle action. Both sound reasonable, just a bit more than a 2 minute fix on a Sunday morning.

---

<div class="post-metadata">

**Author:** ![daxliniere](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/daxliniere/32/42187_2.png) [@daxliniere](https://discourse.nodered.org/u/daxliniere)\
**Post date:** [28 February 2021 11:59 UTC](https://discourse.nodered.org/t/potential-bug-with-shortcuts/41733/4 "2021-02-28T11:59:18Z")

</div>

Hey [knolleary](https://discourse.nodered.org/u/knolleary),  
Thanks for the super-quick response and fix. Really awesome!

I did spot another issue with shortcuts last night as well. I had assigned 'g' to grid snap, then I was typing "message" and I kept getting "messae".. then I realised it was the key binding I had created. I removed that binding and was able to type correctly.

The strange thing is that WASD are also assigned, but don't have that problem. Is it possible a special exception was added for those keys, but not automatically for all key bindings?

Thanks again,  
Dax.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [28 February 2021 12:03 UTC](https://discourse.nodered.org/t/potential-bug-with-shortcuts/41733/5 "2021-02-28T12:03:25Z")

</div>

Make sure you set the scope of the shortcut to 'workspace' not 'global' - that means it is only active if the workspace has focus. This is how the WASD keys are scoped.

---

<div class="post-metadata">

**Author:** ![daxliniere](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/daxliniere/32/42187_2.png) [@daxliniere](https://discourse.nodered.org/u/daxliniere)\
**Post date:** [28 February 2021 22:37 UTC](https://discourse.nodered.org/t/potential-bug-with-shortcuts/41733/6 "2021-02-28T22:37:07Z")

</div>

Ahh cool.  
It would be great if there was a warning when characters like that (and also the SHIFT modifier combinations) were bound to a command, too.

Thanks again!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 April 2021 22:37 UTC](https://discourse.nodered.org/t/potential-bug-with-shortcuts/41733/7 "2021-04-29T22:37:42Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
