зеркало из https://github.com/mozilla/pjs.git
Not part of build. Typeaheadfind: clean up emacsish/repeated character logic
This commit is contained in:
Родитель
1905c441da
Коммит
6e7925d837
|
@ -566,7 +566,7 @@ NS_IMETHODIMP nsTypeAheadFind::KeyPress(nsIDOMEvent* aEvent)
|
|||
|
||||
gIsFindingText = PR_TRUE; // prevents listener callbacks from resetting us during typeahead find processing
|
||||
|
||||
nsresult rv;
|
||||
nsresult rv = NS_ERROR_FAILURE;
|
||||
|
||||
#ifndef PREFER_LINK_CYCLE_ON_SAME_CHAR
|
||||
if (!mDontTryExactMatch)
|
||||
|
|
|
@ -155,6 +155,7 @@ protected:
|
|||
PRInt32 mTimeoutLength; // Amount of time before find is automatically cancelled
|
||||
static PRBool gIsFindingText; // this flag prevents side effects from listener callbacks while selecting/focusing found text
|
||||
nsCOMPtr<nsIDOMRange> mStartFindRange; // where selection was when user started the find
|
||||
nsCOMPtr<nsIDOMRange> mOverrideStartPointRange;
|
||||
|
||||
#ifdef RESTORE_SEARCH
|
||||
// Old nsIFindService state
|
||||
|
|
Загрузка…
Ссылка в новой задаче