# Edit node: a keybind for the cancel button

**URL:** https://discourse.nodered.org/t/edit-node-a-keybind-for-the-cancel-button/83102
**Category:** Feature Requests
**Created:** [22 November 2023 16:29 UTC](https://discourse.nodered.org/t/edit-node-a-keybind-for-the-cancel-button/83102 "2023-11-22T16:29:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![NorWiz49](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/norwiz49/32/80445_2.png) [@NorWiz49](https://discourse.nodered.org/u/NorWiz49)
#### Post date: [22 November 2023 16:29 UTC](https://discourse.nodered.org/t/edit-node-a-keybind-for-the-cancel-button/83102/1 "2023-11-22T16:29:35Z")

</div>

I'd like to suggest we add a key bind for the cancel button on the "edit node" , I think the default button should be the ESCAPE key.

After double-clicking on a node in the editor, the "edit xxxx node" pops out from the right side of the screen. Most often, I'm just trying to see the contents of the node. It would be much faster and easier to press the ESCAPE key to close it, rather than having to move the mouse to the upper right part of the screen, press the cancel button, and then move my mouse back to where I left off

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [22 November 2023 17:13 UTC](https://discourse.nodered.org/t/edit-node-a-keybind-for-the-cancel-button/83102/2 "2023-11-22T17:13:03Z")

</div>

I'm sure that this was discussed previously and Nick had a reason for not doing it. Though I'm afraid my aging brain won't let me recall the reason. It will be in the forum somewhere.

Having said that, I would personally be delighted to have escape exit an edit panel because even after 10 years of use, I STILL trip up over this - the muscle memory from other applications is far too strong.

---

<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: [23 November 2023 09:08 UTC](https://discourse.nodered.org/t/edit-node-a-keybind-for-the-cancel-button/83102/3 "2023-11-23T09:08:35Z")

</div>

If you open the Keyboard shortcuts dialog in the editor you will be able to find the `Cancel Edit Tray` action. You can assign whatever shortcut you want.

We originally did default to `escape` - but we got lots of feedback from users unhappy that they accidentally lost all of their changes by hitting escape by accident. So we set the default to Ctrl-Escape.

We _did_ identify a bug recently that prevented setting it to just `escape` - this was fixed in 3.1.

---

<div class="post-metadata">

### Author: ![NorWiz49](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/norwiz49/32/80445_2.png) [@NorWiz49](https://discourse.nodered.org/u/NorWiz49)
#### Post date: [23 November 2023 14:51 UTC](https://discourse.nodered.org/t/edit-node-a-keybind-for-the-cancel-button/83102/4 "2023-11-23T14:51:48Z")

</div>

It Works! ... After some fiddling.  
I had it set to ESCAPE already, and it wasn't doing anything. to make it work,

 ![image.png](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/7/17827c26d17de5d532e51a66e46cd178fa68c10c.png)

I had to press the drop down arrow, select "edit dialog" and then press the checkmark. I repeated the process  
for "global". Now it's working. YAY! I'm not sure if it's intentional, but the "workspace" checkmark doesn't allow you to press it.

---

<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: [22 January 2024 14:52 UTC](https://discourse.nodered.org/t/edit-node-a-keybind-for-the-cancel-button/83102/5 "2024-01-22T14:52:00Z")

</div>

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