From 4e5c1d305554f03ee091fbb0b7d1c19a1939eaab Mon Sep 17 00:00:00 2001 From: "aaronleventhal%moonset.net" Date: Fri, 13 May 2005 14:32:38 +0000 Subject: [PATCH] Bug 280159. Make find bar's highlight button keyboard shortcut an accesskey mnemonic so that it is discoverable for keyboard users, and so that it also works with find as you type. Ctrl+enter reverts back to its previous single meaning of open in new tab. r=mconnor, a=mkaply git-svn-id: svn://10.0.0.236/trunk@173361 18797224-902f-48f8-a5cc-f745e15eee43 --- .../toolkit/components/typeaheadfind/content/findBar.inc | 6 +++--- .../toolkit/components/typeaheadfind/content/findBar.js | 7 +------ mozilla/toolkit/locales/en-US/chrome/global/findbar.dtd | 7 +++++-- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/mozilla/toolkit/components/typeaheadfind/content/findBar.inc b/mozilla/toolkit/components/typeaheadfind/content/findBar.inc index 57d1467664a..9638deca2b5 100755 --- a/mozilla/toolkit/components/typeaheadfind/content/findBar.inc +++ b/mozilla/toolkit/components/typeaheadfind/content/findBar.inc @@ -8,13 +8,13 @@ onkeypress="onFindBarKeyPress(event);" onblur="onFindBarBlur();"/> + command="cmd_findAgain" disabled="true" accesskey="&findNext.accesskey;"/> + command="cmd_findPrevious" disabled="true" accesskey="&findPrevious.accesskey;"/> + type="checkbox" disabled="true" accesskey="&highlight.accesskey;"/> diff --git a/mozilla/toolkit/components/typeaheadfind/content/findBar.js b/mozilla/toolkit/components/typeaheadfind/content/findBar.js index 5cfcca3f950..7260fa44c41 100755 --- a/mozilla/toolkit/components/typeaheadfind/content/findBar.js +++ b/mozilla/toolkit/components/typeaheadfind/content/findBar.js @@ -472,12 +472,7 @@ function onFindBarKeyPress(evt) var findString = document.getElementById("find-field"); if (!findString.value) return; - - if (evt.ctrlKey) { - document.getElementById("highlight").click(); - return; - } - + if (evt.shiftKey) findPrevious(); else diff --git a/mozilla/toolkit/locales/en-US/chrome/global/findbar.dtd b/mozilla/toolkit/locales/en-US/chrome/global/findbar.dtd index 5ab89c3db4c..4ba8c5d145f 100644 --- a/mozilla/toolkit/locales/en-US/chrome/global/findbar.dtd +++ b/mozilla/toolkit/locales/en-US/chrome/global/findbar.dtd @@ -4,12 +4,15 @@ + + - - + + +