Skip to content

Commit

Permalink
HoK: Make number hint keys work correctly; Closes #156
Browse files Browse the repository at this point in the history
Iterator() now converts its keys' types into number. Since we expect
keys to be string, we convert them to strings manually.
  • Loading branch information
Masafumi Oyamada committed Jan 5, 2015
1 parent 0cba175 commit 82fb5f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/hok.ks.js
Expand Up @@ -5,7 +5,7 @@ var PLUGIN_INFO =
<name>HoK</name>
<description>Hit a hint for KeySnail</description>
<description lang="ja">キーボードでリンクを開く</description>
<version>1.4.2</version>
<version>1.4.3</version>
<updateURL>https://github.com/mooz/keysnail/raw/master/plugins/hok.ks.js</updateURL>
<iconURL>https://github.com/mooz/keysnail/raw/master/plugins/icon/hok.icon.png</iconURL>
<author mail="stillpedant@gmail.com" homepage="http://d.hatena.ne.jp/mooz/">mooz</author>
Expand Down Expand Up @@ -1016,6 +1016,7 @@ var hok = function () {
let foundCount = 0;

for (let [hintStr, hintElem] in Iterator(hintElements)) {
hintStr = String(hintStr);
if (hintStr.indexOf(inputKey) === 0) {
if (hintStr != inputKey)
hintElem.style.backgroundColor = hintColorCandidates;
Expand Down

0 comments on commit 82fb5f3

Please sign in to comment.