Changeset 36886
- Timestamp:
- 03/01/10 21:22:54 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/feedSomeKeys_3.js
r36885 r36886 206 206 args['description'] || 'by feedSomeKeys_3.js', 207 207 function () { 208 function body (win) 209 (win.document.body || win.document); 210 208 211 let win = document.commandDispatcher.focusedWindow; 209 212 let frames = getFrames(); 210 let elem = win;213 let elem = body(win); 211 214 212 215 if (typeof args['-frame'] !== 'undefined') { 213 216 frames = [frames[args['-frame']]]; 214 elem = frames[0];217 elem = body(frames[0]); 215 218 } 216 219 217 220 if (args['-xpath']) 218 elem = or(frames, function (f) fromXPath(args['-xpath'])); 219 220 if (!elem) { 221 liberator.log('feedSomeKeys_3: Not found target element'); 222 elem = win; 223 } 221 elem = or(frames, function (f) fromXPath(f, args['-xpath'])) || elem; 224 222 225 223 feed(rhs, args['-events'] || ['keypress'], elem);
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)