TOP-1642188-remove-nsDOMIEvent-cc.patch 1001 B

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