Skip to content

Commit

Permalink
Added link to chrome shortcut settings
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-spiridonov committed Jan 19, 2017
1 parent 16b6a35 commit 10dbc00
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/html/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
</head>
<body>
<h1>Go to Anywhere</h1>
<p>Open with <b>Ctrl+Shift+A</b> and use auto-complete list below to fire any available action.</p>
<p>Open with <b>Ctrl+Space</b> (<b>Cmd+Space</b> on Mac) and type to fire any available action.</p>
<p>You can change the hotkey <a href="#" id="link">here</a>.</p>

<p>Test connectivity with tabs:</p>
<table>
Expand All @@ -19,7 +20,6 @@ <h1>Go to Anywhere</h1>
</tr>
</table>


<p>Auto-complete:</p>
<form onsubmit="console.log('clicked submit!'); return false;">
<!--<input type="text"><br/>-->
Expand Down
11 changes: 6 additions & 5 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
},
"permissions": [
"tabs",
"bookmarks"
"bookmarks",
"*://*/*"
],
"web_accessible_resources": [
"*.js.map"
Expand All @@ -33,10 +34,10 @@
"commands": {
"_execute_browser_action": {
"suggested_key": {
"windows": "Ctrl+Shift+A",
"mac": "Ctrl+Shift+A",
"chromeos": "Ctrl+Shift+A",
"linux": "Ctrl+Shift+A"
"windows": "Ctrl+Space",
"mac": "Command+Space",
"chromeos": "Ctrl+Space",
"linux": "Ctrl+Space"
}
}
},
Expand Down
5 changes: 5 additions & 0 deletions src/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ chrome.runtime.getBackgroundPage(function (backgroundPage) {

searchBox.open();

$('#link').click(() => {
chrome.tabs.create({url:'chrome://extensions/configureCommands'});
return false;
});
});

});

0 comments on commit 10dbc00

Please sign in to comment.