+
Global
Lunch extension (action) pane
+
Go to homepage (root path)
+
+
Action pane
Ctrl+"+"Add new parameter
Ctrl+"-"Remove currently selected parameter
Ctrl+ArrowNavigate to nearest field
diff --git a/UrlEditorPRO/app/options.ts b/UrlEditorPRO/app/options.ts
index a42c93e..914c6d7 100644
--- a/UrlEditorPRO/app/options.ts
+++ b/UrlEditorPRO/app/options.ts
@@ -160,11 +160,15 @@ module UrlEditor.Options {
}
}
+ let commandToElemIDMap: IStringMap = {
+ "_execute_browser_action": "action-shortcut",
+ "goToHomepage": "goToHome-shortcut"
+ };
- chrome.commands.getAll((commands: any[]) => {
+ chrome.commands.getAll(commands => {
commands.forEach(command => {
- if (command.name == "_execute_browser_action") {
- document.getElementById("action-shortcut").innerText = command.shortcut;
+ if (commandToElemIDMap[command.name]) {
+ document.getElementById(commandToElemIDMap[command.name]).innerText = command.shortcut;
}
});
});