From 087224a4e1ccf199d3d577110a544eee1edf2173 Mon Sep 17 00:00:00 2001 From: "masayuki%d-toybox.com" Date: Sat, 27 Aug 2005 05:22:31 +0000 Subject: [PATCH] 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 --- mozilla/toolkit/components/typeaheadfind/content/findBar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/toolkit/components/typeaheadfind/content/findBar.js b/mozilla/toolkit/components/typeaheadfind/content/findBar.js index 90340c60ad3..ac3f04357d4 100755 --- a/mozilla/toolkit/components/typeaheadfind/content/findBar.js +++ b/mozilla/toolkit/components/typeaheadfind/content/findBar.js @@ -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(); } }