diff options
author | anekos | 2010-03-02 11:44:31 +0000 |
---|---|---|
committer | anekos | 2010-03-02 11:44:31 +0000 |
commit | 2f298d0a69ba565764d8392d4978afaa11dd81bd (patch) | |
tree | 87f77f018d0e73b0013fe06b25b94112ef6d83bf | |
parent | de09cce88b1fd49b9c97c18535dda4fa871f5faf (diff) | |
download | vimperator-plugins-2f298d0a69ba565764d8392d4978afaa11dd81bd.tar.bz2 |
ローカルなマッピングを優先するハックを導入
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36901 d0d07461-0603-4401-acd4-de1884942a52
-rwxr-xr-x | feedSomeKeys_3.js | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/feedSomeKeys_3.js b/feedSomeKeys_3.js index 691a377..259481b 100755 --- a/feedSomeKeys_3.js +++ b/feedSomeKeys_3.js @@ -39,13 +39,14 @@ let PLUGIN_INFO = <name lang="ja">feedSomeKeys 3</name> <description>feed some defined key events into the Web content</description> <description lang="ja">キーイベントをWebコンテンツ側に送る</description> - <version>1.0.5</version> + <version>1.1.0</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> <license>new BSD License (Please read the source code comments of this plugin)</license> <license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license> <updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/feedSomeKeys_3.js</updateURL> <minVersion>2.3</minVersion> <maxVersion>2.3</maxVersion> + <require type="plugin">_libly.js</require> <detail><![CDATA[ see ":help feedSomeKeys-plugin" rc file setting sample: @@ -78,7 +79,7 @@ lazy fmaps -u='http://code.google.com/p/vimperator-labs/issues/detail' u // }}} // INFO {{{ let INFO = -<plugin name="feedSomeKeys" version="1.0.5" +<plugin name="feedSomeKeys" version="1.1.0" href="http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/feedSomeKeys_3.js" summary="Feed some defined key events into the Web content" xmlns="http://vimperator.org/namespaces/liberator"> @@ -347,6 +348,17 @@ let INFO = ); }); + plugins.libly.$U.around( + mappings, + 'getCandidates', + function (next, [mode, prefix, patternOrUrl]) { + let map = mappings.get(mode, prefix, patternOrUrl); + if (map && map.matchingUrls) + return []; + return next(); + } + ); + __context__.API = 'VKeys feed getFrames fromXPath virtualize'.split(/\s+/).reduce( function (result, name) |