Changeset 22830
- Timestamp:
- 11/06/08 18:41:41 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/walk-input.js
r22782 r22830 10 10 // Then if you type M-i once more, the focus moves to "<input name='name' />". 11 11 // 12 // <html> <body>12 // <html> 13 13 // <input name="search" /> 14 14 // <a href="xxx">xxx</a> … … 16 16 // <a href="zzz">zzz</a> 17 17 // <input name="name" /> 18 // <textarea name="comment" />19 // </ body></html>18 // <textarea name="comment"></textarea> 19 // </html> 20 20 21 (function() {21 (function() { 22 22 var walkinput = function() { 23 23 var win = document.commandDispatcher.focusedWindow; … … 30 30 var current = null; 31 31 var next = null; 32 for ( vari = 0; i < list.snapshotLength; ++i) {33 vare = list.snapshotItem(i);32 for (let i = 0; i < list.snapshotLength; ++i) { 33 let e = list.snapshotItem(i); 34 34 if (e == focused) { 35 35 current = e; … … 45 45 }; 46 46 47 liberator.modules.mappings.add([liberator.modules.modes.NORMAL], ['<M-i>'], 'Walk Input Fields', function() { walkinput(); });48 liberator.modules.mappings.add([liberator.modules.modes.INSERT], ['<M-i>'], 'Walk Input Fields', function() { walkinput(); });49 liberator.modules.mappings.add([liberator.modules.modes.NORMAL], ['<A-i>'], 'Walk Input Fields', function() { walkinput(); });50 liberator.modules.mappings.add([liberator.modules.modes.INSERT], ['<A-i>'], 'Walk Input Fields', function() { walkinput(); });47 liberator.modules.mappings.add([liberator.modules.modes.NORMAL], ['<M-i>'], 'Walk Input Fields', walkinput); 48 liberator.modules.mappings.add([liberator.modules.modes.INSERT], ['<M-i>'], 'Walk Input Fields', walkinput); 49 liberator.modules.mappings.add([liberator.modules.modes.NORMAL], ['<A-i>'], 'Walk Input Fields', walkinput); 50 liberator.modules.mappings.add([liberator.modules.modes.INSERT], ['<A-i>'], 'Walk Input Fields', walkinput); 51 51 })();
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)