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

This commit is contained in:
masayuki%d-toybox.com 2005-08-26 04:21:37 +00:00
parent ec5069804e
commit a4d5ab3de2

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();
}
}