Closed Bug 305342 Opened 19 years ago Closed 19 years ago

regression: tabbing from links doens't work in FAYT mode

Categories

(Toolkit :: Find Toolbar, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.8final

People

(Reporter: asaf, Assigned: masayuki)

References

Details

(Keywords: fixed1.8, regression, Whiteboard: [needs approval])

Attachments

(1 file, 1 obsolete file)

Tabbing to links doens't work anymore in FAYT mode (instead, it tabs inside the
findbar or something).

It looks related to the focus changes which were done in order to support IME,
but I think it regressed a bit later.
Flags: blocking1.8b4?
Summary: regression: tabbing between links doens't work in FAYT mode → regression: tabbing from links doens't work in FAYT mode
Do you think that if found link has pseudo focus, we should be able to change
the focus in links by tab?
That's the way FAYT used to work, yes.

(Also, I think you want to go back to "real" focus once you press the TAB key, I
hope it doesn't break IME).
Should I stop FAYT mode if Tab key is pressed?
Or should keep FAYT mode?
Umm.. Maybe, I cannot keep FAYT mode after Tab. Because if we keep it, we need
to emulate the focus changing mechanism. But it is very difficult. The focusable
element is not links only. e.g., input element, select element...

Most easy approach is:

1. Stop FAYT mode.
2. Set focus to found link.
3. Fire tab key event on browser.(I don't know it is possible or not.)
I will work on this tomorrow.(I will sleep, sorry.)
let's stop FAYT at that poiunt.
Status: NEW → ASSIGNED
OS: MacOS X → All
Priority: -- → P1
Hardware: Macintosh → All
Target Milestone: --- → Firefox1.5
Attached patch Patch rv1.0 (obsolete) — Splinter Review
This patch finish the FAYT mode when user type Tab or Shift+Tab and a link is
found.
Attachment #193367 - Flags: review?(mconnor)
Whiteboard: [needs review mconnor]
Flags: blocking1.8b4? → blocking1.8b4+
Comment on attachment 193367 [details] [diff] [review]
Patch rv1.0

>+function finishFAYT(keypressEvent)

please use aKeypressEvent here

>+  else if (evt.keyCode == KeyEvent.DOM_VK_TAB) {
>+    var shouldHandle = !evt.altKey && !evt.ctrlKey && !evt.metaKey;
>+    if (shouldHandle && gFindMode != FIND_NORMAL && gFoundLink) {
>+      if (finishFAYT(evt)) {

you can save a level of nesting by adding the finishFAYT() call into the parent
if statement.
Attachment #193367 - Flags: review?(mconnor) → review+
The risk is low. This is regression bug.
Attachment #193367 - Attachment is obsolete: true
Attachment #193785 - Flags: superreview-
Attachment #193785 - Flags: review+
Attachment #193785 - Flags: approval1.8b4?
Attachment #193785 - Flags: superreview-
checked-in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [needs review mconnor] → [needs approval]
Attachment #193785 - Flags: approval1.8b4? → approval1.8b4+
checked-in to branch too.
Keywords: fixed1.8
verified.

Many thanks, Masayuki!
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: