Index: lib/ui.js |
=================================================================== |
--- a/lib/ui.js |
+++ b/lib/ui.js |
@@ -1636,17 +1636,23 @@ let UI = exports.UI = |
let match = /^abp-key-/.exec(item.getAttribute("key")); |
if (!match) |
continue; |
let name = match.input.substr(match.index + match[0].length); |
if (!this.hotkeys) |
this.configureKeys(window); |
if (name in this.hotkeys) |
- item.setAttribute("acceltext", KeySelector.getTextForKey(this.hotkeys[name])); |
+ { |
+ let text = KeySelector.getTextForKey(this.hotkeys[name]); |
+ if (text) |
+ item.setAttribute("acceltext", text); |
+ else |
+ item.removeAttribute("acceltext"); |
+ } |
} |
hideElement(prefix + "contributebutton", Prefs.hideContributeButton); |
}, |
/** |
* Adds Adblock Plus menu items to the content area context menu when it shows |
* up. |