summaryrefslogtreecommitdiffstats
path: root/client/components/sidebar/sidebar.js
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-05-27 02:48:15 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-05-27 02:48:15 +0200
commit42f6dc686f313ba294e3cbcfb0ebde50678580fe (patch)
treedc14152cc8c98895f800c84cd2737fe6a5b22b7f /client/components/sidebar/sidebar.js
parent40c2411f2a1ce0bbd177f377828f9d6700112b06 (diff)
downloadwekan-42f6dc686f313ba294e3cbcfb0ebde50678580fe.tar.gz
wekan-42f6dc686f313ba294e3cbcfb0ebde50678580fe.tar.bz2
wekan-42f6dc686f313ba294e3cbcfb0ebde50678580fe.zip
Prioritize escape actions with a label hierarchy instead of an integer
Diffstat (limited to 'client/components/sidebar/sidebar.js')
-rw-r--r--client/components/sidebar/sidebar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/components/sidebar/sidebar.js b/client/components/sidebar/sidebar.js
index 729bc42b..ce7925ea 100644
--- a/client/components/sidebar/sidebar.js
+++ b/client/components/sidebar/sidebar.js
@@ -97,7 +97,7 @@ BlazeComponent.extendComponent({
}
}).register('sidebar');
-EscapeActions.register(40,
+EscapeActions.register('sidebarView',
function() { return Sidebar && Sidebar.getView() !== defaultView; },
function() { Sidebar.setView(defaultView); }
);