From d76ebabf93e24ea83b17d2cecb43be5856a297fe Mon Sep 17 00:00:00 2001 From: Andrew Mustun Date: Mon, 4 Jan 2016 15:35:21 +0100 Subject: [PATCH] fix tool titles in shortcut preferences --- scripts/AddOn.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/AddOn.js b/scripts/AddOn.js index a87c6d582e..c8f36d0cac 100644 --- a/scripts/AddOn.js +++ b/scripts/AddOn.js @@ -296,6 +296,11 @@ AddOn.prototype.getTitle = function() { if (!isNull(title)) { title = title.replace("&", ""); + + // remove everything after tab (shortcuts under windows): + if (title.indexOf("\t")!==-1) { + title = title.substring(0, title.indexOf("\t")); + } } return title;