From 51d51e62c8a4a599461bae4d1207942eaf6faea7 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Sun, 12 Jul 2015 19:43:42 -0400
Subject: [PATCH] added shortcut for closing the window

---
 pd/nw/pd_canvas.html | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pd/nw/pd_canvas.html b/pd/nw/pd_canvas.html
index e9ff81e74..342a18b27 100644
--- a/pd/nw/pd_canvas.html
+++ b/pd/nw/pd_canvas.html
@@ -516,7 +516,9 @@ function nw_create_patch_window_menus (name) {
         tooltip: l('menu.close_tt'),
         click: function() {
             pdgui.menu_close(name);
-        }
+        },
+        key: 'w',
+        modifiers: "ctrl"
     }));
 
     // Quit Pd
-- 
GitLab