Closed Bug 444892 Opened 16 years ago Closed 15 years ago

when find bar is focused, ctrl+pageup/dn will scroll page content

Categories

(Toolkit :: Find Toolbar, defect)

x86
Linux
defect
Not set
minor

Tracking

()

VERIFIED FIXED
mozilla1.9.2a1

People

(Reporter: ori, Assigned: ori)

Details

(Keywords: polish, verified1.9.1, Whiteboard: [polish-easy] [polish-interactive][polish-p3])

Attachments

(1 file, 1 obsolete file)

Tested on Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9) Gecko/2008061017 Firefox/3.0

When the find bar is focused, ctrl+pageup/down will send the pageup/down action to the current page before switching tabs.

It should *not* scroll the page when ctrl is pressed.

Steps to reproduce:
1) Open two tabs with lots of vertical scroll. Move the scroll to the middle of the page.
2) Open a find bar in the first tab (will automatically focus) and use ctrl+pagedown to switch to the second tab.
3) Return to the first tab with ctrl+pageup

Results:
1) The page on the first tab has scrolled down. (since the find-bar was focused)
2) The page on the second tab did not scroll up (since the find-bar was not focused
http://mxr.mozilla.org/mozilla-central/source/toolkit/content/widgets/findbar.xml needs to check for keyboard modifiers before scrolling.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Jesse, is CTRL the only "dangerous" modifier? Can you think of others that should be checked for?
I think it should bail if any of cmd/meta, option/alt, or ctrl are held.  Maybe even shift.
Product: Firefox → Toolkit
Attached patch Suggested patch (obsolete) — Splinter Review
Attached is a patch that prevents pageup/down from scrolling the page when pressed in conjunction with ctrl/alt/shift.

I'm not sure if event.preventDefault() should be inside or outside the conditional.

Does shift need to be checked as well?
Attachment #364815 - Flags: review?
Attachment #364815 - Flags: review? → review?(mano)
Attachment #364815 - Flags: review?(mano) → review?(enndeakin)
Comment on attachment 364815 [details] [diff] [review]
Suggested patch

I think shift should be ignored as well.
Attachment #364815 - Flags: review?(enndeakin) → review+
Ok. The new patch also ignores shift.
Attachment #364815 - Attachment is obsolete: true
Attachment #368030 - Flags: review?(enndeakin)
Attachment #368030 - Flags: review?(enndeakin) → review+
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/306d51ee8b10
Assignee: nobody → ori
Status: NEW → RESOLVED
Closed: 15 years ago
Keywords: checkin-neededpolish
Resolution: --- → FIXED
Whiteboard: [polish-easy] [polish-interactive]
Target Milestone: --- → mozilla1.9.2a1
Attachment #368030 - Flags: approval1.9.1?
Comment on attachment 368030 [details] [diff] [review]
Added shift to the list of keys to ignore

a191=beltzner
Attachment #368030 - Flags: approval1.9.1? → approval1.9.1+
Keywords: checkin-needed
verified FIXED on builds: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2a1pre) Gecko/20090505 Minefield/3.6a1pre ID:20090505031205

and

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b5pre) Gecko/20090505 Shiretoko/3.5b5pre ID:20090505031155
Status: RESOLVED → VERIFIED
This bug's priority relative to the set of other polish bugs is:
P3 - Polish issue that is in a secondary interface, occasionally encountered, or is not easily identifiable.
Whiteboard: [polish-easy] [polish-interactive] → [polish-easy] [polish-interactive][polish-p3]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: