Merge branch 'hinting-g-mode'
authorDaniel Carl <danielcarl@gmx.de>
Sun, 5 Jan 2014 18:56:22 +0000 (19:56 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sun, 5 Jan 2014 18:56:22 +0000 (19:56 +0100)
Conflicts:
src/hints.js

1  2 
doc/vimb.1
src/hints.js
src/main.h

diff --cc doc/vimb.1
Simple merge
diff --cc src/hints.js
@@@ -326,25 -383,18 +386,20 @@@ var VbHint = (function()
          }
      }
  
-     /* retrieves the hint for given hint number */
-     function getHint(i) {
-         return hints[i] || null;
-     }
 -    function click(e) {
 -        /* for sites that are interested in mouseover before click */
 -        mouseEvent(e, "mouseover");
 -        /* this is the w3.org definition for DOM-Level 2 events */
 -        mouseEvent(e, "mousedown");
 -        mouseEvent(e, "mouseup");
 -        mouseEvent(e, "click");
 +    function click(e, ctrl) {
 +        mouseEvent(e, "mouseover", ctrl);
 +        mouseEvent(e, "mousedown", ctrl);
 +        mouseEvent(e, "mouseup", ctrl);
 +        mouseEvent(e, "click", ctrl);
      }
  
 -    function mouseEvent(e, name) {
 +    function mouseEvent(e, name, ctrl) {
          var evObj = e.ownerDocument.createEvent("MouseEvents");
 -        evObj.initMouseEvent(name, true, true, e.contentWindow, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
 +        evObj.initMouseEvent(
 +            name, true, true, e.contentWindow,
 +            0, 0, 0, 0, 0,
 +            ctrl !== undefined ? ctrl : false, false, false, false, 0, null
 +        );
          e.dispatchEvent(evObj);
      }
  
diff --cc src/main.h
Simple merge