chromium-vim icon indicating copy to clipboard operation
chromium-vim copied to clipboard

feature request: click element

Open wis opened this issue 7 years ago • 4 comments

at the end of the day, it's a graphical web browser, not a text editor. we need a way to click an element. so we never have to touch the mouse while browsing. like the f key press functionality, (labels all anchors & buttons) the c key press should label all elements excluding div & span elements.

here's how to simulate a click, i tested it, it worked.

function eventFire(el, etype){
  if (el.fireEvent) {
    el.fireEvent('on' + etype);
  } else {
    var evObj = document.createEvent('Events');
    evObj.initEvent(etype, true, false);
    el.dispatchEvent(evObj);
  }
}

usage: eventFire(document.getElementById('mytest1'), 'click');

I will try to add this feature and submit a PR, but first I'll have to read and understand the project to write a LOC & contribute.

wis avatar May 09 '17 05:05 wis

I agree with this. Need functionality similar to Firefox's VimFix when you press 'v' key which is called Place caret at elemet. I really miss this one.

guest73 avatar May 16 '17 16:05 guest73

I also agree please make this feature because I cannot follow the link at some websites.

KamiGim avatar Jul 15 '17 03:07 KamiGim

👍

lecler-i avatar Aug 19 '17 14:08 lecler-i

:+1:

stumash avatar Sep 26 '18 02:09 stumash