12345678910111213141516171819202122232425262728 |
- # HG changeset patch
- # User Ian Neal <iann_cvs@blueyonder.co.uk>
- # Date 1590913490 -3600
- # Parent c9d15a79a5e041adef13e0472b1f2a122ead72be
- Bug 1642188 - Port |Bug 1455052 part 12 - Remove JS uses of nsIDOMEvent| to SeaMonkey. r=frg
- diff --git a/suite/browser/nsTypeAheadFind.js b/suite/browser/nsTypeAheadFind.js
- --- a/suite/browser/nsTypeAheadFind.js
- +++ b/suite/browser/nsTypeAheadFind.js
- @@ -127,17 +127,17 @@ typeAheadFind.prototype = {
- return true;
-
- if (aEvent.type != "keypress") {
- aEvent.stopPropagation();
- return true;
- }
-
- // Are we already in a find?
- - if (aEvent.eventPhase == Ci.nsIDOMEvent.CAPTURING_PHASE)
- + if (aEvent.eventPhase == Event.CAPTURING_PHASE)
- return this.processKey(aEvent);
-
- // Check whether we want to start a new find.
- if (aEvent.defaultPrevented)
- return true;
-
- // We don't want to start a find on a control character.
- // We also don't want to start on a space, since that scrolls the page.
|