Bug 305345 If find toolbar is already opened, if you press "'" or "/" key on browser, the character should not be set to find toolbar r=mconnor, a=asa

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@179126 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
masayuki%d-toybox.com
2005-08-27 05:22:31 +00:00
parent c34ebf1f5e
commit 087224a4e1

View File

@@ -502,7 +502,9 @@ function onBrowserKeyPress(evt)
focusFindBar();
if (gFindMode != FIND_NORMAL) {
findField.value = "";
fireKeypressEvent(findField.inputField, evt);
if (evt.charCode != CHAR_CODE_APOSTROPHE &&
evt.charCode != CHAR_CODE_SLASH)
fireKeypressEvent(findField.inputField, evt);
evt.preventDefault();
}
}