From 347adfe82a3add908c9d24fc344bbb1c70b1f343 Mon Sep 17 00:00:00 2001 From: Albert Graef <aggraef@gmail.com> Date: Sat, 13 Aug 2022 01:14:43 +0200 Subject: [PATCH] Add a keybinding for Esc to pop down the autocompletion popup. This just makes the popup disappear until you start typing again. It's a minor thing, but it makes live a little bit easier. E.g., the popup might obscure other objects that you want to see, so you can now just press Esc to make it disappear without having to stop editing. --- pd/nw/pd_canvas.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pd/nw/pd_canvas.js b/pd/nw/pd_canvas.js index c67ce9201..a2bab3f00 100644 --- a/pd/nw/pd_canvas.js +++ b/pd/nw/pd_canvas.js @@ -589,6 +589,9 @@ var canvas_events = (function() { pdgui.select_result_autocomplete_dd(textbox(), ac_dropdown()); caret_end(); break; + case 27: // esc + pdgui.delete_autocomplete_dd(ac_dropdown()); + break; default: if (textbox().innerText === "") { pdgui.delete_autocomplete_dd(ac_dropdown()); -- GitLab