Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set enable vrome keybinding

  • Loading branch information...
commit 1eecc8b0f309512145b2ca5eb03e3c5cb3695689 1 parent c170d67
@jinzhu authored
Showing with 5 additions and 1 deletion.
  1. +3 −0  src/frontend/main.js
  2. +2 −1  src/shared/options.js
View
3  src/frontend/main.js
@@ -20,6 +20,9 @@ function isEscapeKey(key) {
}
function isCtrlEscapeKey(key) {
+ if (Option.get('enable_vrome_key') == key) {
+ return true;
+ }
for (var i=0;i < CtrlEscapeKey.length; i++) {
if (CtrlEscapeKey[i] == key) { return true; }
}
View
3  src/shared/options.js
@@ -6,7 +6,8 @@ var Option = (function() {
editor : "gvim -f",
server_port: 20000,
searchengines : {"google":"http://www.google.com/search?q={{keyword}}", "yahoo":"http://search.yahoo.com/search?p={{keyword}}", "bing":"http://www.bing.com/search?q={{keyword}}", "wikipedia":"http://en.wikipedia.org/wiki/{{keyword}}","answers":"http://www.answers.com/main/ntquery?s={{keyword}}", "twitter":"https://twitter.com/search/{{keyword}}"},
- defaultsearch: 'google'
+ defaultsearch: 'google',
+ enable_vrome_key: '<C-Esc>'
};
function get(key) {
Please sign in to comment.
Something went wrong with that request. Please try again.