Closed Bug 743158 Opened 13 years ago Closed 12 years ago

Awesome Screen should select/deselect URL text on address bar focus on change

Categories

(Firefox for Android Graveyard :: Keyboards and IME, defect)

ARM
Android
defect
Not set
normal

Tracking

(firefox22 affected, firefox23 verified, blocking-fennec1.0 -, fennec-)

RESOLVED FIXED
Firefox 23
Tracking Status
firefox22 --- affected
firefox23 --- verified
blocking-fennec1.0 --- -
fennec - ---

People

(Reporter: luke, Assigned: jchen)

References

Details

Attachments

(1 file)

STR: 0. Open Fennec and go to any site 1. Tap the location bar to pull up the awesome-bar screen (the whole URL is selected now so entering text will replace it which is good) 2. Pan the awesome-bar list (this makes the keyboard go away, but the URL text is still all selected) 3. Touch the URL text again to pull up the keyboard again. Result: because the text is already selected, when I touch it in (3), the URL text becomes unselected (I get an insertion cursor). Now, if I wanted to type something in (probably what I wanted to do as I just selected the URL bar) I need to first "select all". Expected result: when I pan the awesome-bar list and the keyboard goes away (step 2), the text should be unselected (the selection is almost meaningless now that the keyboard is gone anyhow). That way, when I touch the URL bar again (to bring up the keyboard) it will all be selected again and I am ready to immediately enter my query.
noming for release?
blocking-fennec1.0: --- → ?
blocking-fennec1.0: ? → -
Renom'ing since, after more consideration, this seems to be a straight-up bug: when the keyboard goes away, the text selection should as well. A minor variation with same underlying bug: 1. go to any site 2. tap the location bar 3. tap the bookmarks tab The text is still selected despite the keyboard going away so attempting to enter text will have the same problem.
blocking-fennec1.0: - → ?
We've got our endgame hats on - worth fixing, but not a blocker.
tracking-fennec: --- → 15+
blocking-fennec1.0: ? → -
QA - Are the STR still valid?
tracking-fennec: 15+ → -
Keywords: qawanted
I can still repro comment 0 with the current nightly (comment 3 seems to have gone away).
Both STRs are valid (from comment 0 and comment 3), though I believe that these are as designed? The reason I state this is because we would expect that if people wanted to change the whole link they would have done so or selected a link from the list after panning. If they touch the url a second time, they would be changing the URL to correct the mistake that they had... I could be mistaken. including madhava and ibarlow.
The key problem that makes think that this a bug is that the keyboard goes away while the text stays selected. If the keyboard didn't go away, you could just start typing (and the existing text would be replaced). Basically, I would guess that a UI invariant would be: text is selected iff keyboard is visible Perhaps I'm missing something though?
This bug is very annoying.
Component: General → Keyboards and IME
Summary: frustrating url text selection behavior → Awesome Screen should select/deselect URL text on address bar focus on change
This patch fixes the bug by giving the lists focus and taking focus away from the awesome bar. Because the awesome bar already has the selectAllOnFocus attribute, everything will be selected when you refocus it.
Attachment #741574 - Flags: review?(wjohnston)
Assignee: nobody → nchen
Status: NEW → ASSIGNED
Comment on attachment 741574 [details] [diff] [review] Take focus away from awesome bar when accessing awesome screen lists (v1) Review of attachment 741574 [details] [diff] [review]: ----------------------------------------------------------------- I bet this was the way it was for devices with hardware keyboards. i.e. you could pan the list there without unfocusing the urlbar. Are we ok breaking that?
(In reply to Wesley Johnston (:wesj) from comment #11) > Comment on attachment 741574 [details] [diff] [review] > Take focus away from awesome bar when accessing awesome screen lists (v1) > > Review of attachment 741574 [details] [diff] [review]: > ----------------------------------------------------------------- > > I bet this was the way it was for devices with hardware keyboards. i.e. you > could pan the list there without unfocusing the urlbar. Are we ok breaking > that? I think if the user already focused away from the awesome bar, it's logical to tap the awesome bar again if they want to type in it again (even if they're using a hardware keyboard). Also it's pretty obvious when focus is moved away, because the awesome bar will lose its focus highlight.
Comment on attachment 741574 [details] [diff] [review] Take focus away from awesome bar when accessing awesome screen lists (v1) Review of attachment 741574 [details] [diff] [review]: ----------------------------------------------------------------- I bet this was the way it was for devices with hardware keyboards. i.e. you could pan the list there without unfocusing the urlbar. I'm fine breaking that, but you might want to run the change by UX.
Attachment #741574 - Flags: review?(wjohnston) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 23
Verified fixed on: -build: Firefox for Android 23.0a2 (2013-05-16) -device: Samsung Galaxy Tab -OS: Android 4.0.4
Blocks: 876056
Depends on: 880650
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: