From 42f6dc686f313ba294e3cbcfb0ebde50678580fe Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Wed, 27 May 2015 02:48:15 +0200 Subject: Prioritize escape actions with a label hierarchy instead of an integer --- client/lib/popup.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'client/lib/popup.js') diff --git a/client/lib/popup.js b/client/lib/popup.js index 70f2660f..6298ba81 100644 --- a/client/lib/popup.js +++ b/client/lib/popup.js @@ -204,4 +204,7 @@ $(document).on('click', function(evt) { // Press escape to close the popup. var bindPopup = function(f) { return _.bind(f, Popup); }; -EscapeActions.register(20, bindPopup(Popup.isOpen), bindPopup(Popup.close)); +EscapeActions.register('popup', + bindPopup(Popup.isOpen), + bindPopup(Popup.close) +); -- cgit v1.2.3-1-g7c22