Changeset 27063
- Timestamp:
- 12/19/08 16:09:22 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/char-hints-mod2.js
r27050 r27063 25 25 26 26 == TODO == 27 * support hinttimeout.28 27 ]]></detail> 29 28 <detail lang="ja"><![CDATA[ … … 43 42 44 43 == TODO == 45 * support hinttimeout.46 44 ]]></detail> 47 45 </VimperatorPlugin>; … … 163 161 let hintString = commandline.command; 164 162 commandline.command = hintString.replace(inputRegex, ""); 165 //commandline.command = hintString.replace(/[A-Z]+/g, "");166 163 charhints.original.onInput(event); 167 164 showCharHints(); 168 165 for(let i=0,l=hintString.length;i<l;++i) { 169 //if(/^[A-Z]$/.test(hintString[i])) {}170 166 if(inputRegex.test(hintString[i])) { 171 167 hintChars.push(hintString[i]); … … 173 169 } 174 170 if(hintChars.length>0) { 175 let numstr = String(chars2num(hintChars.join(""))); 171 let hintinput = hintChars.join(""); 172 let numstr = String(chars2num(hintinput)); 176 173 // no setTimeout, don't run nice 177 174 setTimeout(function () { … … 182 179 charhints.original.onEvent(alt); 183 180 } 181 statusline.updateInputBuffer(hintinput); 184 182 }, 10); 185 183 } … … 191 189 } else { 192 190 charhints.original.onEvent(event); 191 statusline.updateInputBuffer(hintinput); 193 192 } 194 193 }, //}}}
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)