Browse Source

add hok

pull/1/head
10sr 12 years ago
parent
commit
0400c59429
1 changed files with 10 additions and 5 deletions
  1. +10
    -5
      _keysnail.js

+ 10
- 5
_keysnail.js View File

@@ -222,7 +222,8 @@ ext.add('auto-install-plugins', function(ev, arg){
'https://raw.github.com/10sr/keysnail-plugin/master/dig-url.ks.js', 'https://raw.github.com/10sr/keysnail-plugin/master/dig-url.ks.js',
'https://raw.github.com/10sr/keysnail-plugin/master/instapaper.ks.js', 'https://raw.github.com/10sr/keysnail-plugin/master/instapaper.ks.js',
'https://raw.github.com/gist/1976942/firefox-addon-manager.ks.js', 'https://raw.github.com/gist/1976942/firefox-addon-manager.ks.js',
'https://raw.github.com/gist/1450594/mstranslator.ks.js'
'https://raw.github.com/gist/1450594/mstranslator.ks.js',
'https://raw.github.com/mooz/keysnail/master/plugins/hok.ks.js'
]; ];


function inst(a){ function inst(a){
@@ -550,14 +551,14 @@ key.setGlobalKey('C-<down>', function () {
} }
}, '選択中のタブを左へ'); }, '選択中のタブを左へ');


key.setViewKey('c', function (ev) {
command.interpreter();
}, 'JavaScript のコードを評価');

key.setGlobalKey('C-h', function (ev, arg) { key.setGlobalKey('C-h', function (ev, arg) {
return; return;
}, 'ignore'); }, 'ignore');


key.setViewKey('c', function (ev) {
command.interpreter();
}, 'JavaScript のコードを評価');

key.setViewKey('D', function (ev, arg) { key.setViewKey('D', function (ev, arg) {
ext.exec("dig-url", arg, ev); ext.exec("dig-url", arg, ev);
}, 'dig url with selector', true); }, 'dig url with selector', true);
@@ -728,3 +729,7 @@ key.setViewKey('T', function (ev, arg) {
key.setEditKey('C-<tab>', function (ev) { key.setEditKey('C-<tab>', function (ev) {
command.walkInputElement(command.elementsRetrieverTextarea, true, true); command.walkInputElement(command.elementsRetrieverTextarea, true, true);
}, '次のテキストエリアへフォーカス'); }, '次のテキストエリアへフォーカス');

key.setGlobalKey('C-l', function (ev, arg) {
ext.exec('hok-start-foreground-mode', arg, ev);
}, 'Start Hit a Hint foreground mode', true);

Loading…
Cancel
Save