legege / searchwp

Firefox Add-on: Find what you seek faster, using jump-to-word buttons and rich highlighting.
12 stars 1 forks source link

Scrollmouse on token button to search the term. #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Scroll down -> search next
Scroll up -> search previous

Original issue reported on code.google.com by Robert.Katic on 3 Sep 2011 at 2:05

GoogleCodeExporter commented 9 years ago
How in this code?
Add this handler to searchbox.xml .

      <handler event="DOMMouseScroll" phase="capturing"><![CDATA[
        if (event.axis == event.HORIZONTAL_AXIS)
          return;

        var findBackwards = event.detail < 0 ? true : false;
        var matchCase = event.altKey || event.ctrlKey;
        this._findFast(findBackwards, matchCase);

    event.stopPropagation();
      ]]></handler>

Original comment by jo0...@gmail.com on 4 Sep 2011 at 11:30

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r166.

Original comment by Robert.Katic on 5 Sep 2011 at 12:04